SubscribeINSERT statements via the console causes some sort of problem in an otherwise properly-configured table, whereby the data looks UTF-8 encoded when viewed within the console but certainly isn't once you've queried that data via PHP.addslashes()! Use mysql_real_escape_string().header("Content-type: text/html; charset=utf-8");mysql_query("SET NAMES 'utf8'"); to set the connection's encoding to utf-8, which is often necessary in php/mysql apps. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />mysql_query("SET NAMES 'utf8'"); in unicode php/mysql apps is that it's already set on the server level, in the my.cnf file. But if it isn't, and you don't have root access to the server, you need to do it yourself every time you connect to mysql by running that query.is that it's already set
default-character-set=utf8 in the [client] section of my.cnf.You are not logged in, either login or create an account to post comments
posted by cillit bang at 6:25 PM on November 28, 2005