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
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...