Japanese Menu without UNICODE compilation |
Post Reply |
Author | |
vaddiprasad
Newbie Joined: 11 June 2010 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 11 June 2010 at 5:20am |
Hi
I am trying to generate the menu titles using an XML file which has the menu items in Japanese. I am using the non unicode configuration of code jock toolkit to retrieve the Japanese menu titles but the menu entries are created in junk characters.
I looked into sample applciation SCRIBBLE, which is generating Japanese menu items by using the UNICODE configuration. I would like to know about How to get the menu items of the SCRIBBLE application in Japanese language without using the Unicode compilation.
Please let me know
Regards
Prasad
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Did you set right encoding attribute for XML ? <?xml version="1.0" encoding="shift-jis"?> |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
vaddiprasad
Newbie Joined: 11 June 2010 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hi Oleg
Thank you very much for the prompt response. The scribble sample works without any issues when it is installed/tested on Japanese operating system. However, I am trying to make this work on an english operating system. My requirement is to run scribble sample on english OS and to make sure that the menu items are displayed in Japanese when the japanese language option is selected. Please let me know your thoughts on this. regards Vaddi |
|
Barto
Groupie Joined: 27 February 2005 Location: Germany Status: Offline Points: 60 |
Post Options
Thanks(0)
|
You can't display Japanese text on an English OS unless you use UNICODE.
|
|
vaddiprasad
Newbie Joined: 11 June 2010 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
I took Debug version(NON-UNICODE) of scribble application. Then switching of application language to Japanese works fine in two scenarios:
1. Run application in XP Japanese OS 2. Run in XP English OS with the following setting - Set the Japanese language for display of non-unicode characters in Control Panel->Regional and Language Settings->Advanced. The conversion from WideCharToMultiByte is successful in the above two scenarios whereas it does not convert correctly XP English |
|
Smucker
Senior Member Joined: 02 February 2008 Status: Offline Points: 156 |
Post Options
Thanks(0)
|
It is possible to display MBCS on an English system, but it requires changing the system locale, so your system becomes kind of hybrid.
1) You have to make sure all the fonts you use include the proper characters. 2) The user has to set the Language for non-Unicode programs (aka system locale) appropriately in Control Panel - Region and Language - Administrative. 3) Since disk file names, etc., are stored in Unicode, only standard ASCII and files from your selected language from (2) will be handled correctly in your program. This is because the UNICODE->MBCS conversions will fail for characters that cannot be represented in the current locale. It's much, much better to use UNICODE. |
|
Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)
Platform: Windows 200x/XP/Vista/Win7 (32/64 bit) Language: Visual C++ 9.0 (Studio 2008) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes, Scribble will work if you run on English OS with Japanese as language for non-Unicode programs. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |