MySQL Forums
Forum List  »  PHP

Re: mysql returns "?????" instead of greek letters
Posted by: Rick James
Date: October 08, 2015 09:40PM

utf8 needs to be established in about 4 places.

- The column(s) in the database -- Use `SHOW CREATE TABLE` to verify that they are explicitly set to utf8, or defaulted from the table definition. (It is not enough to change the database _default_.)
- The connection between the client and the server. See `SET NAMES utf8`. Or mysqli_set_charset('utf8'); if you are using the mysqli* interface.
- The bytes you have. (This is probably the case.)
- If you are displaying the text in a web page, check the `<meta>` tag.

Options: ReplyQuote


Subject
Written By
Posted
Re: mysql returns "?????" instead of greek letters
October 08, 2015 09:40PM


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.