Jump to content

Issue with PHP html FORM SELECT OPTION and UTF-8


AndieB

Recommended Posts

Hi all GURU's,

 

 

I have a problem with UTF-8 characters when I post values/data from my MySQL database into the OPTIONs that I use when using a SELECT in my FORM.

 

The PHP script files are in format UTF-8.

The database, the tables and the columns are all set in UTF-8.

The charset in the META-tag for the html output is set to UTF-8.

 

All other text that is fetched from the database shows my characters (Swedish å ä ö) the right and correct way, EXCEPT when I echo the data in the OPTIONs in my SELECT box.

 

What can I do?

 

Sincerely,

 Andreas

Are you absolutely sure that the file which includes these select boxes, is saved and encoded with UTF-8? If they're stored properly into the database, this is the only thing that came to my mind.

 

If so, post the code in here and we'll check it out.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.