您的位置:首页 > 其它

Chinese Language Processing and Chinese Computing

2006-11-13 14:27 656 查看
ASP is the abbrivation of Active Server Pages

In ASP one can define codepages for the session. These codepages are the same as the windows codepages. For Simplified Chinese (GBK) this is 936 and for Traditional Chinese (Big5) this is 950.
< % session.codepage = 950 % >

The character set can be set using the charset tag
< % Response.Charset = "utf-8" % >

When writing out characters use the chrw-function ("ChrW is provided for 32-bit platforms that use Unicode characters. Its argument is a Unicode (wide) character code, thereby avoiding the conversion from ANSI to Unicode.")
chrw(&H4F60) (prints out the character 你)

To request the language of the browser :
Dim stLang
stLang = Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐