?
Solved

Manipulating Chinese Character String in VB

Posted on 2009-04-19
5
Medium Priority
?
323 Views
Last Modified: 2013-11-08
Hi,

Is there anyway to do String manipulation for Chinese Characters? Localisation? Any good references?
0
Comment
Question by:hanhn
  • 4
5 Comments
 
LVL 18

Expert Comment

by:philipjonathan
ID: 24182116
Normal string operations can still be done on a Chinese character string. Any specific operation that you are having problem with?
For article on localisation, check:
http://www.ondotnet.com/lpt/a/4126
0
 

Author Comment

by:hanhn
ID: 24182227
What if I want to add a chinese word using Visual Basic code?
0
 
LVL 18

Expert Comment

by:philipjonathan
ID: 24182260
Something like this?

string s = "Hello";
s += " `}";

You need to save the source code with encoding.
To do so, choose "Save As", just use the same file name, but click the arrow next to the Save button, then choose "Save with encoding", then choose "Unicode UTF-8"
0
 
LVL 18

Expert Comment

by:philipjonathan
ID: 24182263
Oops, EE formatted my chinese character, let me try to post again:
`}
0
 
LVL 18

Accepted Solution

by:
philipjonathan earned 2000 total points
ID: 24182268
Example as attached
ChineseChar.txt
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Loops Section Overview
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

850 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