Print Page | Close Window

Japanese Menu without UNICODE compilation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16813
Printed Date: 02 January 2025 at 9:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Japanese Menu without UNICODE compilation
Posted By: vaddiprasad
Subject: Japanese Menu without UNICODE compilation
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: vaddiprasad
Date 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


Posted By: Barto
Date Posted: 16 June 2010 at 4:36am
You can't display Japanese text on an English OS unless you use UNICODE.


Posted By: vaddiprasad
Date 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


Posted By: Smucker
Date 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)



Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net