Boost logo

Boost Users :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-07-03 03:12:22

David Abrahams wrote:

>>> Java "unicode" is utf-16, I think. Unicode now has at least 32 bits
>>> per character, IIUC, so I don't think any simplistic interface choices
>>> can make a non-issue of Unicode.
>> Huh, the utf-16 is 16-bit *encoding* for 32-unicode, it's not 16-bit
>> unicode. There are so called surrogate pairs which allows to represent
>> 32-bit values.
> Sure; by the same token we could also use utf-8 and encode your
> Unicode in narrow strings.

Yes. This is very reasonable approach for implementing support for Unicode
without double the library size. And it's exactly what program_options
does, BTW.

- Volodya

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at