utf-8, norwegian signs and mysql

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
annish
Forum Newbie
Posts: 3
Joined: Fri Aug 14, 2009 3:14 am
Location: Oslo - Norway

utf-8, norwegian signs and mysql

Post by annish »

Hi all,

I have searched the web allaround, but cannot find any solution for my problem.

In my page, I have (of course) the meta-tag:

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
And my mysql-db is set to utf-8 (both db and each of my varchar-rows).

Still, when I input æ/ø/å into this, they are set as åæøin the db.

When I "select" them and post them to index.php again, they still get listed as åæø, but I want it to be correct in my DB.

Help?
Post Reply