Get Hex value in the SJIS code page

  • Thread starter Thread starter Saranjit Singh
  • Start date Start date
S

Saranjit Singh

I am trying to get the Hex value for a DBCS character in the Shift-JIS code
page. I am able to get the Unicode value for each character in a string but
have no idea on how to get the Hex value in a particular code set. Any
suggestions would be appreciated.

- Saranjit -
 
I am trying to get the Hex value for a DBCS character in the Shift-JIS code
page. I am able to get the Unicode value for each character in a string but
have no idea on how to get the Hex value in a particular code set. Any
suggestions would be appreciated.

If you encode the string into a byte array using the appropriate
encoding, you can then see what the encoded values are as bytes.

See http://www.pobox.com/~skeet/csharp/unicode.html for more
information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top