encoding question: read shift-JIS data from database

J

jani

Hi,
i am using a database which contains kanji characters with shift-jis
encoding, and i want to show the characters in a datagrid.

Now i am using a sqldataset as data source, and show the data in a
asp.net datagrid. The problem ist, the characters can not be shown
properly.

could anyone telle me how to read the data from the database if they
are encoded in shift-jis?

thanks

jani
 
J

Jon Skeet [C# MVP]

jani said:
i am using a database which contains kanji characters with shift-jis
encoding, and i want to show the characters in a datagrid.

Now i am using a sqldataset as data source, and show the data in a
asp.net datagrid. The problem ist, the characters can not be shown
properly.

could anyone telle me how to read the data from the database if they
are encoded in shift-jis?

Are you sure that the problem is in getting the data from the database?
You should check it at each stage in the process. When you've got the
data from the database, write each character out as an integer and
compare it with the code charts on www.unicode.org.
 

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

Top