Converting Chinese characters to pinyin (asp)

Source: Internet
Author: User
Many problems are caused by Chinese characters.
For example, it is best not to use Chinese characters for file names.
The solution is to generate an ID, which is used as the file name.
If the url contains Chinese characters on the webpage, errors often occur.
The current solution generally uses urlencode encoding.
It's much better to use this conversion.
Principle, using the Dictionary technology
1. Add an index
2. Traverse the dictionary
<%
Set d = CreateObject ("Scripting. Dictionary ")
D. add "a",-20319
D. add "ai",-20317
D. add "an",-20304
D. add "ang",-20295.
D. add "ao",-20292.
D. add "ba",-20283
D. add "bai",-20265
D. add "ban",-20257
D. add "bang",-20242
D. add "bao",-20230.
D. add "bei",-20051.
D. add "ben",-20036
D. add "beng",-20032.
D. add "bi",-20026
D. add "bian",-20002.
D. add "biao",-19990.
D. add "bie",-19986
D. add "bin",-19982.
D. add "bing",-19976.
D. add "bo",-19805.
D. add "bu",-19784
D. add "ca",-19775.
D. add "cai",-19774.
D. add "can",-19763.
D. add "cang",-19756.
D. add "cao",-19751.
D. add "ce",-19746.
D. add "ceng",-19741.
D. add "cha",-19739
D. add "chai",-19728.
D. add "chan",-19725
D. add "chang",-19715.
D. add "chao",-19540.
D. add "che",-19531.
D. add "chen",-19525.
D. add "cheng",-19515.
D. add "chi",-19500
D. add "chong",-19484.
D. add "chou",-19479.
D. add "chu",-19467.
D. add "chuai",-19289
D. add "chuan",-19288.
D. add "chuang",-19281.
D. add "chui",-19275.
D. add "chun",-19270.
D. add "chuo",-19263.
D. add "ci",-19261.
D. add "cong",-19249.
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.