Ungarbling the comments

by Michael S. Kaplan, published on 2007/01/17 06:01 -05:00, original URI: http://blogs.msdn.com/b/michkap/archive/2007/01/17/1481756.aspx

Sengottuvelu's question was:

Hi Michal,

we have visual basic 6.0 code. The code comments and code are all in japanese characters. we dont have japanese version of VB 6.0,so the japanese characters are all showing junk characters.

i like to know is there is any possible to view japanese characters without japanese version VB 6.0.if so how its possible .

Reply me

Thanks and Regards

First and foremost there is the problem that VB6's IDE does not support Unicode, so your default system code page is really controlling how much you can seed. Changing your default system locale to Japanese and rebooting, or alternately using (the previously discussed) AppLocale, is the way to take care of the biggest problem.

From there you will likely find some sporadic problems with font selections that you may have to change sometimes to see the text.

But that should make the Japanese comments available to look at.

Now actually running the application can run into a whole bunch of other problems that might be worthy of a post at some point.

Come to think of it, just like that Converting an Application to Unicode series, if I had an application that I could take through the whole process as a sample, it might actually be a lot of fun to do (not specifically for VB 6.0 of course, I mean for any sort of application!). Though I suspect it might prove even harder to do find such a project then it was for the Unicode conversion....


This post brought to you by  (U+17b2, a.k.a. KHMER INDEPENDENT VOWEL QOO TYPE TWO)

# josh on 17 Jan 2007 11:43 AM:

I've found that Japanese stuff tends to use shift JIS far more often than Unicode.  (of course if the IDE doesn't support Unicode, all the more likely)  My standard trick is to open up text files in a web browser, since they're designed to handle text coming in all sorts of encodings, and often have a way to manually select one if they can't autodetect correctly.  You can't edit there, but it is a cheap way to get the whole thing converted to something usable.

Please consider a donation to keep this archive running, maintained and free of advertising.
Donate €20 or more to receive an offline copy of the whole archive including all images.

go to newer or older post, or back to index or month or day