AndieB Posted December 4, 2013 Share Posted December 4, 2013 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 Quote Link to comment https://forums.phpfreaks.com/topic/284527-issue-with-php-html-form-select-option-and-utf-8/ Share on other sites More sharing options...
B_CooperA Posted December 4, 2013 Share Posted December 4, 2013 (edited) 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 December 4, 2013 by B_CooperA Quote Link to comment https://forums.phpfreaks.com/topic/284527-issue-with-php-html-form-select-option-and-utf-8/#findComment-1461262 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.