unicode datagridview win forms

点点圈 提交于 2019-12-25 02:28:29

问题


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

Anyone knows how to solve this problem to make it display '


回答1:


Maybe it's an encoding issue.

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




回答2:


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.



来源:https://stackoverflow.com/questions/6552414/unicode-datagridview-win-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!