I don't think so...Rathinagiri wrote:IMHO, it may be because of the older version of Harbour that HMG uses.
If possible, please try to rebuild HMG with the latest version of Harbour and whether we have the same problem.
In the fact there is a problem to read Chinese and Japanese characters from INI files and seems a bug in the HMG C function (this is a common demand).
To write in UTF16LE_BOM looks OK. You can check by visualize INI file in Notepad++ when was created.
The imediate return of GetPrivateProfileString of the string does not come completely (characters are missing) as Mr. Hui Yi said.
I tried to replace GetPrivateProfileString in C function to GetPrivateProfileStringW but doesn't work it...
We also need to remember that an error was reported when INI file is being created: viewtopic.php?p=46479#p46479. But this I already found the solution and pass onto Claudio. Probably in next HMG relase he's gonna be included. Anyway, In my HMG is already fixed and the problem now is not the INI (UNICODE) creation. The problem is in READ process.
Some other C programmer advice to use GetPrivateProfileStringA and then decode with MultiByteToWideChar. But this will requires the CodePage info... (sounds It's like going back in the past).
Probably the C programmers gurus can give us a help in this...
I can not ask for anything more for Claudio, he is saturated with many things to do ...
Sorry, I can not help it because of lack of C knowledge ...