开发者

unicode datagridview win forms

I have problem with data grid view in win forms. If I try to display ' character data grid view displays some weird characters. (‘ & ’)

Anyone kn开发者_如何学JAVAows how to solve this problem to make it display '


Maybe it's an encoding issue.

Where does the data come from and how do you load it into the data grid view?


You are seeing the UTF-8 byte sequence with the individual bytes displayed in the Windows-1252 encoding.

More specifically, the unicode codepoints 2018 and 2019 are the left and right single quotation marks respectively. Their UTF-8 representations are E28098 and E28099. In the Windows-1252 encoding the byte E2 is displayed as your accented a character,80 by the Euro symbol, and 98 / 99 displayed by corresponding final characters in your example.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜