Page 1 of 1

setkey + unicode

Posted: 24 Sep 2008 01:58
by Muroph
i see that xy can write unicode chars to xyplorer.ini.
getkey also works with unicode chars.
but when i try to save a string with japanese chars to a custom ini they are all replaced with "?".
shouldn't setkey support unicode as well?

Re: setkey + unicode

Posted: 24 Sep 2008 07:37
by admin
Muroph wrote:i see that xy can write unicode chars to xyplorer.ini.
getkey also works with unicode chars.
but when i try to save a string with japanese chars to a custom ini they are all replaced with "?".
shouldn't setkey support unicode as well?
Yes. The files would need to be BOM-ed (Byte Order Marked) then for UTF-16 on creation. Should work. Will test.