| Author |
Unicode - ASP VB code
|
|
| Enoch Chan 2005-12-14, 6:56 pm |
| I need to read Chinese text from Access and use response.write to display on
a web page. However some characters are not correctly displayed, they are
displayed as ?.
After some rearch, this problem can only be solved UNLESS the Chinese text
are written as unicode codes. e.g. response.write("<p>壮Ф</p>").
I have tried StrConv function but I always got syntax error. Is there
anybody can give me your helping hands.
Thanks
| |
| Mark Schupp 2005-12-14, 6:56 pm |
| Session.CodePage=65001
Response.CharSet="utf-8"
--
--Mark Schupp
"Enoch Chan" <EnochChan@discussions.microsoft.com> wrote in message
news:D389DA4E-C55A-424D-B3E0-E3EC041395C0@microsoft.com...
>I need to read Chinese text from Access and use response.write to display
>on
> a web page. However some characters are not correctly displayed, they are
> displayed as ?.
>
> After some rearch, this problem can only be solved UNLESS the Chinese text
> are written as unicode codes. e.g. response.write("<p>??</p>").
>
> I have tried StrConv function but I always got syntax error. Is there
> anybody can give me your helping hands.
>
> Thanks
| |
| Enoch Chan 2005-12-14, 9:55 pm |
| It's working. Thanks. You saved me lots of time.
"Mark Schupp" wrote:
> Session.CodePage=65001
> Response.CharSet="utf-8"
>
> --
> --Mark Schupp
>
>
> "Enoch Chan" <EnochChan@discussions.microsoft.com> wrote in message
> news:D389DA4E-C55A-424D-B3E0-E3EC041395C0@microsoft.com...
>
>
>
| |
| Enoch Chan 2005-12-14, 9:55 pm |
| It does not work if I need to open the page by Excel
Response.ContentType = "application/vnd.ms-excel"
Any advise?
Thanks
"Enoch Chan" wrote:
[color=darkred]
> It's working. Thanks. You saved me lots of time.
>
> "Mark Schupp" wrote:
>
| |
| prakash.sekar 2006-09-15, 2:29 am |
| I also faced same problem.
anybody know solution?
Thanks
R.Prakash
quote: Originally posted by Enoch Chan
It does not work if I need to open the page by Excel
Response.ContentType = "application/vnd.ms-excel"
Any advise?
Thanks
"Enoch Chan" wrote:
[color=darkred]
> It's working. Thanks. You saved me lots of time.
>
> "Mark Schupp" wrote:
>
|
|
|
|