"How to detect Chinese characters (or any other char set block) in a unicode string"
Peter Ty's WebLog : How to detect Chinese characters (or any other char set block) in a unicode string
"Recently I saw a question in a local forum asking on how to detect Chinese characters in a unicode string, I did some research on the web and found info regarding the unicode character map, it should be pretty straight forward to get that.
For example, the Chinese characters should be in the range of:
4E00..9FFF; CJK Unified Ideographs. After figuring this out, the next step is to use the .NET classes to generate the char out of an integer value and vice versa, for this task, I found the Char.ConvertFromUtf32 and Char.ConvertToUtf32 function helpful.
..."
This is an idea I think I can use...
No comments:
Post a Comment