Special characters in PHP / MySQL

Posted by Jonathan on Stack Overflow See other posts from Stack Overflow or by Jonathan
Published on 2009-03-11T08:47:22Z Indexed on 2010/04/23 16:23 UTC
Read the original article Hit count: 393

Filed under:
|
|

Hi, I have in the database words that include special character (in Spanish mostly, like tildes). In the database everything is saved and shown correctly with PHPmyAdmin, but when I get the data (using PHP) and display it in a browser, I get a weird character, like a "?" with a square... I need a general fix so I don't need to escape each character every time, and also I would be able to insert special Spanish characters from a PHP form into the database...

The HTML is correct:

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

All tables and databas are set to utf8_spanish

The character I get: ?

Any suggestions???

Thanks!!!

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql