[fpc-pascal] Set of encoding conversion routines
theo
xpde at theo.ch
Tue Aug 11 19:29:50 CEST 2009
> I just needed UTF-8 to Latin 1 ISO but I can't find a cross-platform
> solution. Remembering that UTF8ToAnsi doesn't solve the problem
> because it converts to the system encoding and not Latin 1 ISO.
>
>
A simpe option might be:
wides:=UTF8Decode(utf8s);
widestringmanager.Wide2AnsiMoveProc:=@defaultWide2AnsiMove;
ansis:=wides;
Maybe set back widestringmanager.Wide2AnsiMoveProc to the original proc
after that.
More information about the fpc-pascal
mailing list