Solved

Chinese characters into edit control

Posted on 2009-07-09
8
267 Views
Last Modified: 2013-12-26
Hi,
We are building a software for a company that deals with chinese people. the want a program is operated in English entirely, except one field. This field needs to store a name in chinese, using chinese symbols. We face the problem where once we enter some text using say Chinese Simplified, it looks fine up to the point when the control gets an <enter> . It's content here changes to "???" I assume this is due to the fact the the chinese symbols are stored as double-byte and this is the time when the conversion happens
We are using standard English version of Windows XP Pro
What are the choices ?

TIA,
Tom
0
Comment
Question by:tom_szabo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 22

Expert Comment

by:danaseaman
ID: 24815526
Try this Unicode TextBox. Uses UTF-16 strings (not DBCS) and will work on any OS, not just Chinese.

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=70658&lngWId=1
or latest control from:
http://kontu.selfip.info/vb6/projects/Unicode/UniText/ 

0
 
LVL 22

Expert Comment

by:danaseaman
ID: 24816638
This UTF-16 Chinese string can be used for testing:

   Dim sChs    As String
   
   sChs = "CHS: " & ChrW$(&H6B22) & ChrW$(&H8FCE)

0
 

Author Comment

by:tom_szabo
ID: 24833851
Hi Danaseaman,
My only issue is that I am not using VB but Visual Object, so I would need the control to be an OCX. Does this have an OCX version that you know of, or is there any other that could be used?

TIA,

Tom
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
LVL 22

Expert Comment

by:danaseaman
ID: 24833891
Compiled to UniTextBox.ocx.
You can download here:
http://download636.mediafire.com/nbnt02jzzudg/jmndmy0ym0n/UniTextMerri.zip


0
 

Author Comment

by:tom_szabo
ID: 24835260
Thanks for that, you have guided me to the right thing, but it doesn't want to work... I can actually get it to show in the form but when I click in it with the mouse, it quits the program without even a message
Ayway, that is not yor fault. Do you know any other OCX?  TIA, Tom
0
 
LVL 22

Accepted Solution

by:
danaseaman earned 500 total points
ID: 24835322
If you have Office installed then you could try TextBox in "Forms 2.0 Object Library".
I assume you have installed Far East language support in XP:
http://www.cyberactivex.com/UnicodeTutorialVb.htm#Wheres_the_Beef_%28Unicode%29


0
 

Author Comment

by:tom_szabo
ID: 24835412
I think you already done your work for the points so I will consider this as complete, will post a new question if this second option will not do me either, thanks again, Tom

I really appreciate your prompt answer!
0
 

Author Closing Comment

by:tom_szabo
ID: 31601544
I really appreciate your prompt answer!
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question