Chinese text computing
         | | | | | | |      

Programming tips

Unicode to GB/Big5 conversion using ASP script

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)


Copyright. 1998-2017. Jun Da. Page last updated: 2010-09-16