On Thu, 7 Apr 2016, Sven Barth wrote:


the SetMultiByteConversionCodePage(CP_UTF8) call makes
DefaultSystemCodePage=CP_UTF8 which matches UTF8String and so in
fpc_ansistr_to_ansistr no conversion is performed.

And so that is why SetMultiByteConversionCodePage(CP_UTF8) is needed when
compiling in windows....
:)

UTF8ToUTF16 should best take a UTF8String then. It would fit the purpose of
the function better anyway...

This should not exist to begin with, I think. The UTF8Decode function of the system unit performs the same function.

Jesus, thank you for looking into this, we'll get to work with it !

Michael.

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to