unicode problem in INI
-
I would like to read unicode from INI in my application. Reading from GetPrivateProfileString is ???? For example.. I want to read and display Thai Words in my application. [Thai] Card=บัตร Thanks in advance.
-
I would like to read unicode from INI in my application. Reading from GetPrivateProfileString is ???? For example.. I want to read and display Thai Words in my application. [Thai] Card=บัตร Thanks in advance.
You can P/Invoke the
GetPrivateProfileString
as I did below,string
's in .NET are unicode.[DllImport("kernel32.dll")]
static extern uint GetPrivateProfileString(string lpAppName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, uint nSize, string lpFileName);- Nick Parker
My Blog | My Articles -
I would like to read unicode from INI in my application. Reading from GetPrivateProfileString is ???? For example.. I want to read and display Thai Words in my application. [Thai] Card=บัตร Thanks in advance.
Hi Use GetPrivateProfileStringW (notice the W) That's the unicode version.