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

Link to comment
Share on other sites

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.

Edited by B_CooperA
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.