views:

855

answers:

1

My source base is mostly using UTF8, but some older library has Windows Latin1 encoded strings hardcoded within it.

I was hoping Boost would have a clear conversion feature, but I did not find such. Do I really need to hand-code such a commonplace solution?

Looking for a portable solution, running on Linux.

(This Q is similar, but not quite the same)

Edit: ICU seems to be the right answer, but it's a bit overkill for my needs. I ended up doing string-replace for the known few extended chars that were used.

+3  A: 

International Components for Unicode (ICU) does have the solutions you are looking for. Boost can be compiled with support for ICU, e.g. for Boost regular expressions, but precompiled versions of Boost usually don't include it.

DevSolar