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 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 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. 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
Archived
This topic is now archived and is closed to further replies.