If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Encoding Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-04, 05:34
hktang hktang is offline
Registered User
 
Join Date: Nov 2002
Location: Singapore
Posts: 17
Encoding Problem

Hi all,

Currently I am doing a chinese website, and also required to store chinese data in SQL.

The webpage's charset is set at utf-8 and the chinese word I typed in can be seen correctly.
But when it comes to querying the SQL and retrieve the chinese data, the chinese data is not showing properly (always display as ???). Only when I set the codePage at 65001 (Session.CodePage=65001) then the chinese data is displaying okay.
Now the problem comes as the chinese word in the webpage which was displaying okay, now becomes funny characters.

Is there anyway to not set session codepage and display the SQL chinese data properly? OR is there anyway to see the chinese word properly while setting session codepage to 65001?

Anyone has any idea?

Tang
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On