Description: Basic idea is simple, with two large arrays: UTF8-> GBK start with UTF8 in the Interpretation of the unicode value, and then read from the array GBK value. GBK-> UTF8 directly to the value of subscript GBK, UTF8 find the corresponding array value. Now solve the problem: 1. Can be converted to the GBK encoding from UTF8 2. UTF8 encoding format can make judgments, such as a UTF8 deficient or insufficient number of bytes will be automatically skipped. 3. Transcoding from GBK to UTF8 encoding outstanding issues: 1. Calculate the string length 2. In the calling function to allocate a certain cache to space, such as allocation of space is not big enough, will have core down
- [convertz802] - - Convert file (plain text) or co clipbo
- [myCode] - beautyearth@163.com prepared. Main funct
- [mailtitle_uncode] - //The title in the e-mail using Chinese
File list (Check if you may need any files):
utf8\codingBase.c
....\readme
....\utf8.c
....\zzop.h
utf8