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?
- Is your table UTF8? SHOW CREATE TABLE tablename
- Is your connection to mysql UTF8? Run SET NAMES UTF8 as your first query.
- Is your headers and web page set to UTF8?
You need all three in order for everything to work correctly.
精彩评论