Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 14th, 2005, 03:05 PM
Enoch Chan
Guest
 
Posts: n/a
Default Unicode - ASP VB code

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
  #2  
Old December 14th, 2005, 03:55 PM
Mark Schupp
Guest
 
Posts: n/a
Default Re: Unicode - ASP VB code

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...[color=blue]
>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[/color]


  #3  
Old December 15th, 2005, 02:05 AM
Enoch Chan
Guest
 
Posts: n/a
Default Re: Unicode - ASP VB code

It's working. Thanks. You saved me lots of time.

"Mark Schupp" wrote:
[color=blue]
> 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...[color=green]
> >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[/color]
>
>
>[/color]
  #4  
Old December 15th, 2005, 03:05 AM
Enoch Chan
Guest
 
Posts: n/a
Default Re: Unicode - ASP VB code

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=blue]
> It's working. Thanks. You saved me lots of time.
>
> "Mark Schupp" wrote:
>[color=green]
> > 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...[color=darkred]
> > >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[/color]
> >
> >
> >[/color][/color]
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles