[fpc-pascal] Convert codepages back to UTF8

Sven Barth pascaldragon at googlemail.com
Mon May 27 14:30:10 CEST 2019

Alexey Tor. <aaa5500 at ya.ru> schrieb am Mo., 27. Mai 2019, 13:15:

> LazUtils.LConvEncoding can convert utf8 to codepage (not many codepages)
> and vice versa.
> FPC 3 can convert utf8 to codepage - via SetCodePage(s, codepage, true).
> But how can FPC convert back - codepage to utf8? Does such way exist?

Use CP_UTF8 as code page for SetCodePage or assign the string to a
UTF8String variable.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190527/1a46d2c4/attachment.html>

More information about the fpc-pascal mailing list