Home All Groups Group Topic Archive Search About

Classic ASP sytem needs to support Chinese data entry - to do list

Author
16 Apr 2007 1:36 PM
Carlin Anderson
I have a large classic ASP web application which needs to now support chinese
character entry (I don't have to worry about the UI yet - the data entry
people can read english).  Other than changing the database fields over to
"N" data types, do I need to do anything to the actual entry fields (input,
textbox) on the various forms to be able to capture the information.    Some
users will be entering the information in english, while others will be
translating the same info into chinese as they enter it.

I know this is probably much easier in .net, but we have yet made that
transition.  Now that 2.0 is available, it should be much more viable.

Any assistance is appreciated.

Carlin

Author
16 Apr 2007 10:02 PM
Anthony Jones
Show quote Hide quote
"Carlin Anderson" <CarlinAnder***@discussions.microsoft.com> wrote in
message news:DC8637A3-82EF-4A8F-9F81-5C93BDCE4D27@microsoft.com...
> I have a large classic ASP web application which needs to now support
chinese
> character entry (I don't have to worry about the UI yet - the data entry
> people can read english).  Other than changing the database fields over to
> "N" data types, do I need to do anything to the actual entry fields
(input,
> textbox) on the various forms to be able to capture the information.
Some
> users will be entering the information in english, while others will be
> translating the same info into chinese as they enter it.
>
> I know this is probably much easier in .net, but we have yet made that
> transition.  Now that 2.0 is available, it should be much more viable.
>
> Any assistance is appreciated.
>
> Carlin

You will need the Form pages to be sent as UTF-8 and the client informed of
that choice.

Response.Codepage = 65001
Response.CharSet = "UTF-8"

If your existing page contains characters outside the standard ASCII set
save the file as UTF-8.

Now this is important, any page receiving a POST from such a form MUST
specify Response.CodePage = 65001 before it attempts to retrieve values from
the form fields.

With that done and NVARCHAR fields in place you should be ok.

Anthony.
Are all your drivers up to date? click for free checkup

Author
17 Apr 2007 7:14 AM
michal
a meta tag in all pages to indicate the encoding:
<meta http-equiv="content-type" content="text/html; charset=utf-8">

>Now this is important, any page receiving a POST from such a form MUST
>specify Response.CodePage = 65001 before it attempts to retrieve values from
>the form fields.
Thats very important!

Show quoteHide quote
On Apr 17, 12:02 am, "Anthony Jones" <A***@yadayadayada.com> wrote:
> "Carlin Anderson" <CarlinAnder***@discussions.microsoft.com> wrote in
> messagenews:DC8637A3-82EF-4A8F-9F81-5C93BDCE4***@microsoft.com...
>
>
>
>
>
> > I have a large classic ASP web application which needs to now support
> chinese
> > character entry (I don't have to worry about the UI yet - the data entry
> > people can read english).  Other than changing the database fields over to
> > "N" data types, do I need to do anything to the actual entry fields
> (input,
> > textbox) on the various forms to be able to capture the information.
> Some
> > users will be entering the information in english, while others will be
> > translating the same info into chinese as they enter it.
>
> > I know this is probably much easier in .net, but we have yet made that
> > transition.  Now that 2.0 is available, it should be much more viable.
>
> > Any assistance is appreciated.
>
> > Carlin
>
> You will need the Form pages to be sent as UTF-8 and the client informed of
> that choice.
>
> Response.Codepage = 65001
> Response.CharSet = "UTF-8"
>
> If your existing page contains characters outside the standard ASCII set
> save the file as UTF-8.
>
> Now this is important, any page receiving a POST from such a form MUST
> specify Response.CodePage = 65001 before it attempts to retrieve values from
> the form fields.
>
> With that done and NVARCHAR fields in place you should be ok.
>
> Anthony.- Hide quoted text -
>
> - Show quoted text -
Author
17 Apr 2007 8:26 AM
Anthony Jones
"michal" <mga***@gmail.com> wrote in message
news:1176794079.548741.248690@e65g2000hsc.googlegroups.com...
> a meta tag in all pages to indicate the encoding:
> <meta http-equiv="content-type" content="text/html; charset=utf-8">

Since the actual content-type header already contains this value why is this
meta tag needed?
Author
17 Apr 2007 11:56 AM
michal
for instance for search engines

Show quoteHide quote
On Apr 17, 10:26 am, "Anthony Jones" <A***@yadayadayada.com> wrote:
> "michal" <mga***@gmail.com> wrote in message
>
> news:1176794079.548741.248690@e65g2000hsc.googlegroups.com...
>
> > a meta tag in all pages to indicate the encoding:
> > <meta http-equiv="content-type" content="text/html; charset=utf-8">
>
> Since the actual content-type header already contains this value why is this
> meta tag needed?

Bookmark and Share