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
Solved

Chinese characters into edit control

Posted on 2009-07-09
8
261 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
  • 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

792 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