{"id":175,"date":"2007-03-22T20:30:12","date_gmt":"2007-03-22T23:30:12","guid":{"rendered":"http:\/\/www.subterfugios.net\/blog\/arquivos\/2007\/03\/22\/mysql-encoding-charset\/"},"modified":"2007-03-22T20:30:12","modified_gmt":"2007-03-22T23:30:12","slug":"mysql-encoding-charset","status":"publish","type":"post","link":"https:\/\/www.subterfugios.net\/blog\/mysql-encoding-charset\/","title":{"rendered":"Mysql &#8211; encoding, charset"},"content":{"rendered":"<p>Aproveitando o assunto da dica anterior, vou pregar aqui tamb\u00e9m um lembrete sobre a configura\u00e7\u00e3o de charset do mysql:<\/p>\n<p><code>[mysqld]<br \/>\n...<br \/>\ncharacter_set_server=latin1<\/code><\/p>\n<p>Coloque isso no \/etc\/mysql\/my.cnf, reinicie o servidor (\/etc\/init.d\/mysql restart) e &#8211; se n\u00e3o me engano &#8211; recrie seus bancos de dados, para que eles sejam criados com o charset correto.<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon sd-sharing\"><div class=\"sd-content\"><ul><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-175\" class=\"share-facebook sd-button share-icon no-text\" href=\"https:\/\/www.subterfugios.net\/blog\/mysql-encoding-charset\/?share=facebook\" target=\"_blank\" title=\"Clique para compartilhar no Facebook\"><span><\/span><span class=\"sharing-screen-reader-text\">Clique para compartilhar no Facebook(abre em nova janela)<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-175\" class=\"share-twitter sd-button share-icon no-text\" href=\"https:\/\/www.subterfugios.net\/blog\/mysql-encoding-charset\/?share=twitter\" target=\"_blank\" title=\"Clique para compartilhar no Twitter\"><span><\/span><span class=\"sharing-screen-reader-text\">Clique para compartilhar no Twitter(abre em nova janela)<\/span><\/a><\/li><li class=\"share-jetpack-whatsapp\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-jetpack-whatsapp sd-button share-icon no-text\" href=\"https:\/\/api.whatsapp.com\/send?text=Mysql%20-%20encoding%2C%20charset%20https%3A%2F%2Fwww.subterfugios.net%2Fblog%2Fmysql-encoding-charset%2F\" target=\"_blank\" title=\"Clique para compartilhar no WhatsApp\"><span><\/span><span class=\"sharing-screen-reader-text\">Clique para compartilhar no WhatsApp(abre em nova janela)<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Aproveitando o assunto da dica anterior, vou pregar aqui tamb\u00e9m um lembrete sobre a configura\u00e7\u00e3o de charset do mysql: [mysqld] &#8230; character_set_server=latin1 Coloque isso no \/etc\/mysql\/my.cnf, reinicie o servidor (\/etc\/init.d\/mysql restart) e &#8211; se n\u00e3o me engano &#8211; recrie seus &hellip; <a href=\"https:\/\/www.subterfugios.net\/blog\/mysql-encoding-charset\/\">Continue lendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon sd-sharing\"><div class=\"sd-content\"><ul><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-175\" class=\"share-facebook sd-button share-icon no-text\" href=\"https:\/\/www.subterfugios.net\/blog\/mysql-encoding-charset\/?share=facebook\" target=\"_blank\" title=\"Clique para compartilhar no Facebook\"><span><\/span><span class=\"sharing-screen-reader-text\">Clique para compartilhar no Facebook(abre em nova janela)<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-175\" class=\"share-twitter sd-button share-icon no-text\" href=\"https:\/\/www.subterfugios.net\/blog\/mysql-encoding-charset\/?share=twitter\" target=\"_blank\" title=\"Clique para compartilhar no Twitter\"><span><\/span><span class=\"sharing-screen-reader-text\">Clique para compartilhar no Twitter(abre em nova janela)<\/span><\/a><\/li><li class=\"share-jetpack-whatsapp\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-jetpack-whatsapp sd-button share-icon no-text\" href=\"https:\/\/api.whatsapp.com\/send?text=Mysql%20-%20encoding%2C%20charset%20https%3A%2F%2Fwww.subterfugios.net%2Fblog%2Fmysql-encoding-charset%2F\" target=\"_blank\" title=\"Clique para compartilhar no WhatsApp\"><span><\/span><span class=\"sharing-screen-reader-text\">Clique para compartilhar no WhatsApp(abre em nova janela)<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"sharing_disabled":false,"spay_email":"","footnotes":"","jetpack_publicize_message":""},"categories":[1],"tags":[],"class_list":["post-175","post","type-post","status-publish","format-standard","hentry","category-etc"],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/pAkyI-2P","_links":{"self":[{"href":"https:\/\/www.subterfugios.net\/blog\/wp-json\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.subterfugios.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.subterfugios.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.subterfugios.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.subterfugios.net\/blog\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":0,"href":"https:\/\/www.subterfugios.net\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.subterfugios.net\/blog\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.subterfugios.net\/blog\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.subterfugios.net\/blog\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}