Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-04

Widestring endianness

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

Hello,

I suppose that widestring is encoded with UTF-16 LE (little endian), regardless of the platform endianness. Is that correct? I mean, standard operations like assignment of string, copy from ansistring, etc, will result in UTF-16-LE

thanks,

Felipe Monteiro de Carvalho
Jonas Maebe
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote
I suppose that widestring is encoded with UTF-16 LE (little endian), regardless of the platform endianness. Is that correct? I mean, standard operations like assignment of string, copy from ansistring, etc, will result in UTF-16-LE

No, it's native endianess. When streaming, it's converted to/from little endian though.

Jonas