• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 610
  • Last Modified:



I need to know whether in Japanese codepage (Shift-JIS) exist double byte version of English alphabet.
E.g. pairs like this:
'A' (ASCII code 65) - 'A' (some double byte code from Shift-JIS).

I'm aware that starting parts of ASCII and Shift-JIS are same so 'A' from ASCII is equal to 'A' from Shift-JIS. But I suppose that another code from JIS may exist for ASCII's 'A'.

If someone can say ABSOLUTELY DEFINITELY that I'm mistaken I'll accept it as answer.
Othewise if someone will tell that such pairs are exist PLEASE provide them!!

Thanks in advance, mikle.
  • 2
1 Solution
I suppose that you desire to know that this is true so that you don't have to take into account the problem of parsing between single and double byte characters.  This can be a major problem.  The solution to this is to use UNICODE.  There, all characters, the old ASCII standard and the extended character set are represented.  Japanese characters are represented in codes 0x3000 - 09FFF.  0x0000-0x7FFF are the normal ASCII codes, in two byte format. (The first 128 characters).  You can use MultiBytetoWideChar () and WideCharToMultiByte () to convert between Shift-JIS and UNICODE.  There are some codes that don't have a one-to-one conversion, and those codes are listed at: http://support.microsoft.com/support/kb/articles/Q170/5/59.asp.

Now, to answer your question.  There is no double-byte equivalent for 'A'.  This is the problem with the double-byte character system.  Try using UNICODE instead.

If you have another question, just post a comment.
It's exactly this problem that has makes Shift-JIS a nuisance.  But, because it's used so much in MS, because they developed it, we face this problem.
mikle081198Author Commented:
Thank you for your great answer!!!

I do not need UNICODE. Shift-JIS only.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now