Reading Simplified Chinese String. [modified]
-
It seems your old applications were ANSI. You should recompile them with UNICODE flag set instead.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
Thanks for your reply, Yes they are in ANSI But i simply cannot change anything..There's lot of dependency.. Whatever i can do is in my code(Database to LAN)..
-
Thanks for your reply, Yes they are in ANSI But i simply cannot change anything..There's lot of dependency.. Whatever i can do is in my code(Database to LAN)..
-
I'm not sure if it really can be done, but try looking at the different code pages[^]. See GBK[^].
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
I tried int iReturn = _setmbcp(936); also... But no suuccess :( Anyone... Thanks.
-
I tried int iReturn = _setmbcp(936); also... But no suuccess :( Anyone... Thanks.
gothic_coder wrote:
iReturn = _setmbcp(936);
I don't know what that is. Anyway, if you're program is ANSI how can you read Chinese Simplified? Isn't it supposed to need Unicode or at least MBCS or am I wrong?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
-
gothic_coder wrote:
iReturn = _setmbcp(936);
I don't know what that is. Anyway, if you're program is ANSI how can you read Chinese Simplified? Isn't it supposed to need Unicode or at least MBCS or am I wrong?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
Yes it will better to change the project setting with UNICODE support. ANSI characters only 256 they wont support any East Asian language.
Величие не Бога может быть недооценена.
-
Yes it will better to change the project setting with UNICODE support. ANSI characters only 256 they wont support any East Asian language.
Величие не Бога может быть недооценена.
The OP says that Traditional Chinese works in his first post. P.S. I make different LAN files using different language databases including "Traditional Chinese" and it works well, Only Simplified Chinese is creating problem. I really don't get it how it can work with an ANSI program, but he seems to say that.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
-
gothic_coder wrote:
iReturn = _setmbcp(936);
I don't know what that is. Anyway, if you're program is ANSI how can you read Chinese Simplified? Isn't it supposed to need Unicode or at least MBCS or am I wrong?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
My program is in UNICODE, and other applications(Which read from LAN) as i mentioned earlier were written long back and in ANSI... But when i make "Traditional Chinese" lan files the applications read the right data and i get right data in GUI.. I'm writing the unicoded data in the file(notepad) in my program... So isn't there any way for "Simplified Chinese". Thanks.
-
The OP says that Traditional Chinese works in his first post. P.S. I make different LAN files using different language databases including "Traditional Chinese" and it works well, Only Simplified Chinese is creating problem. I really don't get it how it can work with an ANSI program, but he seems to say that.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
Yes it work smoothly in "Traditional Chinese"... Trust me, Other applications which reads are ANSI based... I am really confused why it's not working in the case of "Simplified Chinese". Thanks.
-
My program is in UNICODE, and other applications(Which read from LAN) as i mentioned earlier were written long back and in ANSI... But when i make "Traditional Chinese" lan files the applications read the right data and i get right data in GUI.. I'm writing the unicoded data in the file(notepad) in my program... So isn't there any way for "Simplified Chinese". Thanks.
No one??
-
No one??
Also when i tried "Traditional Chinese" LAN files in "Simplified Chinese" operating system, It shows everything in English..I mean when i check LAN files it is in "Traditional Chinese" but when applications read from LAN files and display on GUI, it shows everything in English.. The OS is Windows7.. Also in Win XP, The application shows the mixture of right data and "?", It must mean that whatever application understand it shows it and for the rest it shows "?".. Thanks.