MySQL Forums
Forum List  »  PHP

Re: Unwanted character conversions
Posted by: Barry Galbraith
Date: February 12, 2013 07:48PM

> But I don't know WHY it works

I saw on another forum that it was to make your CLIENT send and expect utf-8 characters.

>mysql_set_charset
This was given as the "correct" way to set the client character set. If you use SET NAMES UTF8 then it breaks mysql_real_escape_string()

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
Re: Unwanted character conversions
February 12, 2013 07:48PM


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.