[OSM-dev] Binary OSM; the first pass encoder
Chris Browet
cbro at semperpax.com
Sun Nov 9 17:29:15 GMT 2008
2008/11/9 Stefan de Konink <stefan at konink.de>
> Chris Browet wrote:
>
>> UTF16 is just the default for Qt strings ;-) wchar* is UTF16, too. There
>> definitely are UTF characters used, so char* is probably too restrictive,
>> unless you handle UTF yourself.
>>
>
> But like char* utfX is terminated by \0 too right? And is backwards
> compatible?
>
UTF8 is backward compatibles, as an ascii string will have the same
representation as a char* one in UTF8.
UTF16 is always 2 char, so is not.
Both have \0, too, although UTF16 actually have 00 00.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20081109/4da87457/attachment.html>
More information about the dev
mailing list