sorry to Back to this old topic
This work fine for me, but why i need to set code page of my system ansi, why it not set in the system, i meant at least i dont need to call WideStringManager.GetStandardCodePageProc(scpAnsi) every time i load my string
var
s: string;
t: rawbytestring;
SetCodePage(t, WideStringManager.GetStandardCodePageProc(scpAnsi), false);
s := AnsiToUtf8(t);
or is there a cached of ansi system codepage? WideStringManager.GetStandardCodePageProc(scpAnsi) ?
DefaultSystemCodePage not work for me