472,378 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,378 software developers and data experts.

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
Apr 16 '07 #1
4 4391

"Carlin Anderson" <Ca************@discussions.microsoft.comwrote in
message news:DC**********************************@microsof t.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.
Apr 16 '07 #2
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!

On Apr 17, 12:02 am, "Anthony Jones" <A...@yadayadayada.comwrote:
"Carlin Anderson" <CarlinAnder...@discussions.microsoft.comwrote in
messagenews:DC**********************************@m icrosoft.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 -

Apr 17 '07 #3

"michal" <mg****@gmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.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?
Apr 17 '07 #4
for instance for search engines

On Apr 17, 10:26 am, "Anthony Jones" <A...@yadayadayada.comwrote:
"michal" <mga...@gmail.comwrote in message

news:11**********************@e65g2000hsc.googlegr oups.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?

Apr 17 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Aditya Ivaturi | last post by:
We have a CMS which is written is based on php & mysql. Recently we received a request to support multiple languages so that sites in that particular laguage can be created. I did some search on...
1
by: Anthony Liu | last post by:
The following 4 lines of code parses an XML document very well if the XML document contains only English words. But when I insert one Chinese character into the XML document, then Python starts...
1
by: bjwang | last post by:
Hello wisers, We are testing a system which is developed on top of Oracle 9iAS. The client PCs are using Internet Explorer to access the system. We are sure that the Oracle 9i database server is...
3
by: Antonio | last post by:
Hi, I want to read an html page written in chinese and store it in a file having extension .aspx , I'm not sure where is the problem, I use the following lines of code: String sAddress =...
99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
5
by: Ma Siva Kumar | last post by:
Running postgresql-7.3.2-3 which came with Red Hat 9.0. Created a database with unicode encoding (in psql) as below: create database leatherlink with encoding='unicode' template=leatherlinkdb;...
3
by: excel_hari | last post by:
Hi, I couldnt locate a Classic ASP group hence posting here. One of my colleagues has designed an intranet site and one of the pages has a drop-down box with close to 300 options. I want to...
9
by: Charles Law | last post by:
Hi chaps I realise that this is a .NET group, but please don't shoot me down quite yet. I looked in the vb classic groups and there seems to be so little activity there that I was not hopeful of...
4
by: =?Utf-8?B?TWlrZSBHYWxl?= | last post by:
VS 2008 initially didn't debug classic ASP. SP1 fixes this in some ways. You can debug if you select the debug option to "Start Without Debugging, then either attach the debugger manually or...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.