cannot display chinese

cannot display chinese

am 29.01.2008 20:24:46 von HK newsgroup

I cannot display Chinses at ASP page. All chinese data (whatever is
Traditional or Simply Chinese) are displayed as ????.

My website connect to MS SQL Server 2005 and all the chinese data are
displayed as ????.

I try to fix the problem for several days, but still can't fix it. Please
help me to solve this problem.

here is the detail of my system.
* SQL Server 2005 via TCP/IP
* the connection string is "Provider=SQLOLEDB.1;Persist Security
Info=False;User ID=xx;Initial Catalog=websonic_pos;Data
Source=xx.xx.xx.xx;Password=xx;"

Re: cannot display chinese

am 01.02.2008 19:07:00 von Anthony Jones

"HK newsgroup" wrote in message
news:ePwBIyqYIHA.6068@TK2MSFTNGP05.phx.gbl...
> I cannot display Chinses at ASP page. All chinese data (whatever is
> Traditional or Simply Chinese) are displayed as ????.
>
> My website connect to MS SQL Server 2005 and all the chinese data are
> displayed as ????.
>
> I try to fix the problem for several days, but still can't fix it. Please
> help me to solve this problem.
>
> here is the detail of my system.
> * SQL Server 2005 via TCP/IP
> * the connection string is "Provider=SQLOLEDB.1;Persist Security
> Info=False;User ID=xx;Initial Catalog=websonic_pos;Data
> Source=xx.xx.xx.xx;Password=xx;"
>


Place this at the top of your ASP page and then save using UTF-8 encoding
<%@codepage=65001 %>
<%
Response.CharSet = "UTF-8"
%>

.. . . Rest of your page . . .




--
Anthony Jones - MVP ASP/ASP.NET