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.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to