Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Japanese Menu without UNICODE compilation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Japanese Menu without UNICODE compilation

 Post Reply Post Reply
Author
Message
vaddiprasad View Drop Down
Newbie
Newbie


Joined: 11 June 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote vaddiprasad Quote  Post ReplyReply Direct Link To This Post Topic: Japanese Menu without UNICODE compilation
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 14 June 2010 at 4:26am
Hi,

Did you set right encoding attribute for XML ?

<?xml version="1.0" encoding="shift-jis"?>
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
vaddiprasad View Drop Down
Newbie
Newbie


Joined: 11 June 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote vaddiprasad Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2010 at 4:33am
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
Back to Top
Barto View Drop Down
Groupie
Groupie


Joined: 27 February 2005
Location: Germany
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote Barto Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2010 at 4:36am
You can't display Japanese text on an English OS unless you use UNICODE.
Back to Top
vaddiprasad View Drop Down
Newbie
Newbie


Joined: 11 June 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote vaddiprasad Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2010 at 5:46am
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
Back to Top
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2010 at 8:20am
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)

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2010 at 8:41am
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.344 seconds.