Page 1 of 1

Re: PureBASIC internal encoding of unicode, UCS-2 or UTF-16?

Posted: Thu Mar 05, 2015 3:54 pm
by Fred
For the record, PB uses UCS2 string encoding internally when unicode mode is ON (it doesn't support multibyte UTF16 encoding).

Re: PureBASIC internal encoding of unicode, UCS-2 or UTF-16?

Posted: Wed Mar 25, 2015 12:56 pm
by Rescator
Fred wrote:For the record, PB uses UCS2 string encoding internally when unicode mode is ON (it doesn't support multibyte UTF16 encoding).
Does this mean that if Windows passes back a UTF-16 string where one character actually uses two UTF-16 "characters" then PureBasic will treat them as if they where two characters rather than a extended one?

(Similar to how a Ascii routine would treat a UTF-8 string with extended UTF-8 characters.)