Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Asian characters

Status
Not open for further replies.

UncleJack

Programmer
Joined
Sep 20, 2001
Messages
344
Does anyone know how to determine the ASCII value of a double-byte character such as is used in Arial Unicode font for Asian characters?

Uncle Jack
 
Uncle jack,

Hate to see your post slipping down with no response, but I really don't have an answer.

I do have a simple form I use to find the ASCII character code of a character (or vice versa). Asc(string) returns the integer representing the character code.

AscW(string) returns the Unicode character code which is the ISO standard. This only works on "DCBS" systems and to tell the honest to god truth, I don't have a clue what that is.

I have a feeling that this may be the key to your problem, but I also believe you probably already know all of this.

Just hope that pushing your post to the top of the heap will catch the eye of someone who can help.

John
 
John:

Thanks for writing back. You are correct about AscW returing the ANSI value of a double-byte character on DBCS systems. What I've found is that AscW works on Japanese Windows, but not on English Windows. Both Japanese and Chinese Windows are DBCS (Double-Byte Character Systems) with 64,000 ANSI codes rather than English language single byte systems with only 256 codes possible.

I don't really understand the mechanism whereby unicode character sets can be displayed on an English Windows system which, by definition, is limited to single-byte characters. My problem is I'm trying to convert some Chinese characters from a non-unicode system on my English Unicode font system. They display fine on my Japanese Windows version, but are all goofy when displayed on English Windows.

I had just hoped someone out there might have a quick and ready answer for what is turning out to be a rather vexing problem.

Thanks again for the response.


Uncle Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top