?
Solved

Chinese characters into edit control

Posted on 2009-07-09
8
Medium Priority
?
270 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 2000 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

777 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