开发者

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

开发者 https://www.devze.com 2023-01-27 02:55 出处:网络
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 \'???

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

精彩评论

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