Problem with VB reading Chinese/Korean International Language

I have read about Internationalization and need some help.  I developed a client/server application in VB6.  The application handles customer registration and a queston/answer survey.  The label captions for the form and the questions and answers for the survey are all stored in an Access (Office XP) database.  The original application was developed for English and Spanish and since both languages are Western Latin characters, there was no problem with the language difference.  However, now the client wants the application to work in China and Korea.  I have read several Q/A in experts-exchange as well as MSDN regarding working with Internationalization.  I have added the Traditional Chinese, Simplified Chinese and Korean in the Control Panel/Regional and Languages Settings and installed the languages in MS Office.  Now the problem I have is VB will not read the language.  Like I have mentioned, the data is stored in the MS Access and the language is read and maintained in the database, but when I try to extract the data from the database, it either returns ???? or characters which do not closely resemble the Chinese characters in the database.  I have tried using a resource file, but get the same issue when pasting the data into the resource file.  I have even tried hard coding the data in the app, but again getting the same results.  I do not have a Chinese character keyboard, but do have the text saved in the database.  Any help you can provide to assisting me getting through this would be greatly appreciated.  

PJ
houmerlinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

houmerlinAuthor Commented:
Hi Leon,

I have read the links you have mentioned.  

I have tried several things now, including setting the font of the labels to MingLiu -> Subset Chinese Big5.  I have tried loading the values into an INI file and in the INI files the values are properly stored, but when VB tries to read the values I notices walking through the code, the API call brings back an incorrect string, I believe a non Unicode comforming string, like you have mentioned perhaps an ASCII.  Any recommendations on what to do from here?  

In some of the articles you posted people mentioned various things like using MS Form 2.0, but if VB does not properly bring over the value from the INI, using the form would be useless, right?
0
leonstrykerCommented:
MS Form 2.0 is not the answer, it is non-distributable and buggy to boot.  You should not bring the text into a INI file as well, since things will be changed by it.  The challenge for you is to find a font which contains the characters you are looking for as the 0-255 ASCII values.  If you can find it you can then build a translation function like we did for Greek and Russian in the links above.

I know it is not easy, but I have yet to find a better solution.

Leon
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

houmerlinAuthor Commented:
Ok so here is another twist for this.  I have an admin console, one button is open registration forms for clients to fill out the information.  Another button just below it is a button to open a form with a MSHFlexGrid object on the form.  I inadvertantly clicked on the button to view the form with the Flex Grid and the data displays perfectly in Chinese.  So now I am just a little confused to say the least.
0
leonstrykerCommented:
MSHFlexGrid may have unicode support built in, something that can not be said for other standard controls.  In such a case you may try to use it instead of labels and text boxes.  Kind of strange, but if it works, go for it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brendt HessSenior DBACommented:
VB6 Controls are, unfortunately, not Unicode enabled, meaning that they can only display characters that are defined in the ANSI character set of the client machine where the app is running.

To see if this is the case, try dumping out the hex representation of one of the strings that you retrieved (*before* you try to put the string in a textbox or label).  Here's a function that will return a string version of the hex representation of a Unicode string.  If the output doesn't make any sense to you, then there may be other issues.  If you get anything but a series of 0x3F's, the data is actually not question marks at that point, which means that it must be getting converted to question marks at some later point in the app.

Since the VB Controls display Question marks when they cannot show the Unicode characters correctly, that would be my suspicion as to when the conversion is happening :)

Function StrToHex (S As String) As String
' Returns a hexadecimal representation of the input string
Dim Temp, OutStr, I
If VarType(S) <> 8 Then
    StrToHex = S
Else
    Temp = ""
    OutStr = ""
    For I = 1 To LenB(S)
       Temp = Hex(AscB(MidB(S, I, 1)))
       If Len(Temp) = 1 Then Temp = "0" & Temp
       OutStr = OutStr & Temp
   Next
   StrToHex = OutStr
End If
End Function
0
ami2003Commented:
Hi,
It 's a little more difficult when u try access font unicode in VB6 or VC6. Why don't you try to learn VB.Net or C#.NET. Life will be alright... All of your trouble will be ok...
Bye and hope you feel my suggestion is correct
0
leonstrykerCommented:
ami2003

Sorry to tell you this but VB.NET has the same problem
0
MYLimCommented:
Have you try to install "chinese star 2000" or "NJSTAR" ?

0
ayufansCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Points split between leonstryker and bhess1

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

ayufans
Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.