1

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

what can i do to have them shown propertly?

fayer
  • 17
  • 6

2 Answers2

4

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

Jordan Ryan Moore
  • 6,877
  • 2
  • 26
  • 27
  • 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 Dec 03 '09 at 21:34
  • Execute `SET NAMES utf8` as your first query to MySQL before executing any other queries. – Jordan Ryan Moore Dec 03 '09 at 21:41
2

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
  • 442,112
  • 142
  • 972
  • 1,088