Jun Da's WebCentral

Home | Academic | Chinese | CALL | Systems | Personal | Contact

 

Chinese text computing

(This is the 1998 version. An updated 2004 version is now available)

 

Untitled Document

Programming tips

1. Unicode to GB/Big5 conversion using ASP scripts

Problem: How to dump text strings encoded in Unicode and stored in, for example, ACCESS database to a webpage?

Solution: Provided by Daniel Wiebell

Basically, ASP (and some other scripting languages) will not print or work
with unicode, which is how languages other than english are stored in a
Microsoft database. So, when you want to print unicode to the screen, you
need to tell your script to convert the unicode to a normal character set.

The command in ASP is:

       Server.HTMLEncode(put the string here)

 

Chinese Computing Site Map

Chinese Text Computing Sitemap
Title page
Introduction
Statistics
Search
Technical notes
Chinese computing FAQ
Relevant links
Suggestions
What's new
Copyright notice
My homepage

Copyright. 1998-2000. Jun Da. jda@mtsu.edu