Solved

Convert Hex value of a Chinese word

Posted on 2001-09-16
4
392 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
[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 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jquery to restrict certain words from input in form 11 52
Reg Exp to extract Url from string asp 12 59
MS SQL + date 6 54
Help with Classic ASP - Parameterizing Query 16 66
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 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