MySQL Workbench charset

匆匆过客 提交于 2019-11-28 22:32:31
sbrbot

I think OP was asking about charset that Workbench uses in its editor and how to setup Workbench to use UTF-8 in GUI - not how to setup default charset used for database table in Workbench. At the moment in Workbench one can set database table charset but regardless of it Workbench will in it's GUI represent data using Latin1 charset!!! Also inserting data into UTF-8 tables through Workbench will result with wrong chars in database. I don't know either how to make Workbench deal with UTF-8 in its GUI.

In "Model Overview", under "Physical Schemata", right-click the database and select "Edit Schema...". Define the character set to the "Collation"-field. (MySQL Workbench 5.2.35)

demongolem

For further reading, another fix would be to change the display font. Go to Edit -> Preferences -> Appearance. Change the Editor font. It could be that the default font does not display utf-8 correctly, but others do.

Oh, and if you are having trouble changing your font you can try here

You have to set every fields utf8 or Table default at the alter table.

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