开发者

how to save text from textbox in mysql as utf-8

when I try to save开发者_如何学C the text from textbox into mysql database from winforms application, I have a problem with getting the same data and showing in the same textbox, it's shows the '????' please help me to resolve this problem


Are you executing SET NAMES UTF8 before populating the data?


  1. Is your table UTF8? SHOW CREATE TABLE tablename
  2. Is your connection to mysql UTF8? Run SET NAMES UTF8 as your first query.
  3. Is your headers and web page set to UTF8?

You need all three in order for everything to work correctly.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜