k_zaur_k
k_zaur_k

Reputation: 400

How to decode string on c++

How to decode string in c++. for example utf8 to cp1251 or koi8-r to utf8

Upvotes: 2

Views: 1146

Answers (2)

Kirill V. Lyadvinsky
Kirill V. Lyadvinsky

Reputation: 99585

C++ has no native support for performing such conversions. You could look at ICU library.

ICU is a mature, widely used set of C/C++ and Java libraries providing Unicode and Globalization support for software applications. ICU is widely portable and gives applications the same results on all platforms and between C/C++ and Java software.

Upvotes: 3

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798626

Use libiconv or icu.

Upvotes: 3

Related Questions