Solved

Convert Hex value of a Chinese word

Posted on 2001-09-16
4
390 Views
Last Modified: 2008-03-03
Dear All,

I really need help from all the experts here on how to convert, eg. a double byte hexadecimal Chinese character, to a form of standard codes where I am able to save it to and view the Chinese character in my MS Access Database.

For example, a Chinese character "You", has such a code of "Äã". May I know what format is that? If I have a code of such : "884C", how can I convert it to the form of ,eg, "Äã"?

Please help.

Thanks.
0
Comment
Question by:tigerSG
4 Comments
 

Expert Comment

by:OhMyGod
ID: 6486676
In VB,
u can use strconv() to convert it
like this:

Dim s As String
Dim t() As Byte
Dim I As Integer

s = "A?"

MsgBox s
t = StrConv(s, vbFromUnicode)
For I = LBound(t) To UBound(t)
MsgBox "&#" & t(I)
Next
0
 
LVL 20

Expert Comment

by:Silvers5
ID: 6486686
this is unicode.. your can store it this way in your db but when you want to show on the site simply put an content type meta in your header.. no need to Hex or else.. and a codepage.. you should know the code of your character set..

'the below will show unicoded arabic
<%@Language=VBScript Codepage=1256%>
<html>
<head>
<META content="text/html; charset=windows-1256" http-equiv=Content-Type>
</head>
<body>...
0
 
LVL 1

Accepted Solution

by:
benyip020499 earned 150 total points
ID: 6486901
To Avoid this problem, you should set your html page with Big5 charset.

<html>
<head>
<META  http-equiv=Content-Type content="text/html; charset=Big5">
</head>
<body>...
0
 

Author Comment

by:tigerSG
ID: 6574671
Hi,

Is there any funcion in Visual Basic that I can use to convert a string of unicode to Chineses Character in Win 2000 Server Chinese OS.

Anyone can Help.

Thanks.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL to update characters in table column 6 127
VBSCRIPT string remove all characters to the right after extension 4 62
is this a cms? 8 60
Issues with Insert statement 12 26
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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