开发者

how to check the string is UNICODE vb.net

Is there any way to check if the string is UNICODE using VB.net.

Best开发者_开发技巧 Regards inchikka


You need to read the file using the Encoding that the file is written in.

It appears to be a non Unicode file that you are trying to read as Unicode, or possibly a different Unicode encoding than the default UTF-8 (could be UTF-16 for example).

StreamWriter has several constructors that the an Encoding as parameter.


You can do it by validating each character in the string against the 128 characters in the ASCII table. If the character is not found there then it might be a unicode character.

Is that what you mean?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜