Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old April 16th, 2007, 02:45 PM
=?Utf-8?B?Q2FybGluIEFuZGVyc29u?=
Guest
 
Posts: n/a
Default Classic ASP sytem needs to support Chinese data entry - to do list

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
  #2  
Old April 16th, 2007, 11:05 PM
Anthony Jones
Guest
 
Posts: n/a
Default Re: Classic ASP sytem needs to support Chinese data entry - to do list


"Carlin Anderson" <CarlinAnderson@discussions.microsoft.comwrote in
message news:DC8637A3-82EF-4A8F-9F81-5C93BDCE4D27@microsoft.com...
Quote:
I have a large classic ASP web application which needs to now support
chinese
Quote:
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,
Quote:
textbox) on the various forms to be able to capture the information.
Some
Quote:
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.


  #3  
Old April 17th, 2007, 08:15 AM
michal
Guest
 
Posts: n/a
Default Re: Classic ASP sytem needs to support Chinese data entry - to do list

a meta tag in all pages to indicate the encoding:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Quote:
>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!

On Apr 17, 12:02 am, "Anthony Jones" <A...@yadayadayada.comwrote:
Quote:
"Carlin Anderson" <CarlinAnder...@discussions.microsoft.comwrote in
messagenews:DC8637A3-82EF-4A8F-9F81-5C93BDCE4D27@microsoft.com...
>
>
>
>
>
Quote:
I have a large classic ASP web application which needs to now support
chinese
Quote:
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,
Quote:
textbox) on the various forms to be able to capture the information.
Some
Quote:
users will be entering the information in english, while others will be
translating the same info into chinese as they enter it.
>
Quote:
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.
>
Quote:
Any assistance is appreciated.
>
Quote:
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 -

  #4  
Old April 17th, 2007, 09:35 AM
Anthony Jones
Guest
 
Posts: n/a
Default Re: Classic ASP sytem needs to support Chinese data entry - to do list


"michal" <mgabru@gmail.comwrote in message
news:1176794079.548741.248690@e65g2000hsc.googlegr oups.com...
Quote:
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?


  #5  
Old April 17th, 2007, 01:05 PM
michal
Guest
 
Posts: n/a
Default Re: Classic ASP sytem needs to support Chinese data entry - to do list

for instance for search engines

On Apr 17, 10:26 am, "Anthony Jones" <A...@yadayadayada.comwrote:
Quote:
"michal" <mga...@gmail.comwrote in message
>
news:1176794079.548741.248690@e65g2000hsc.googlegr oups.com...
>
Quote:
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?

 

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