views:

94

answers:

2

specialcharacters åöö in the database cant be shown when i retrieve the rows and echo it.

what can i do to have them shown propertly?

+2  A: 

Make sure your database tables, connection and output document type are UTF-8. Good reading on the issue: http://www.joelonsoftware.com/articles/Unicode.html

Pekka
+3  A: 

There are a number of character encoding options that need to be set:

Jordan Ryan Moore
i dont quite understand the database connection using utf8. can someone plz explain. SET NAMES UTF-8 in the php files or in the mysql database.
fayer
Execute `SET NAMES utf8` as your first query to MySQL before executing any other queries.
Jordan Ryan Moore