MySQL Forums
Forum List  »  PHP

Re: Charset SESSION vs GLOBAL
Posted by: Cédric Michel
Date: March 27, 2011 11:31PM

-------------------------------------------------------
Have you considered switching to mysqli_* (instead of mysql_*) API in PHP? It may have the issues solved.
-------------------------------------------------------

Not for old sites... as I said, "On recent projects, we use SET NAMES (latin1 or utf8) and it works fine."

For old projects, we've got the problem because of the connection: utf8 instead of latin1. If we had to work on these, i would just have to add SET NAMES latin1 (tested) to solve the problem.

So I just try to understand WHY... why the connection is in UTF8 instead of latin1 (cf. my.cnf, php.ini). It is more for my personal knowledge than for a real need.

And thank you for the link! I have not yet taken time to read everything, but that seems very interesting.

Options: ReplyQuote


Subject
Written By
Posted
March 26, 2011 03:37PM
March 27, 2011 07:17PM
Re: Charset SESSION vs GLOBAL
March 27, 2011 11:31PM
March 28, 2011 12:26AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.