[Lazarus] PDF generator, try 2

Michael Van Canneyt michael at freepascal.org
Thu Apr 7 08:36:02 CEST 2016



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.




More information about the Lazarus mailing list