I can’t get swedish character like å ä ö in my tables when i use MySQL tables in my localhost. I use DEFAULT CHARSET=utf8 when I create the tables, but not working! All files with the PHP code are in UTF-8.
Preciate some help! Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You may also need it on your client as well. I’ve found this weird issue when inserting UTF-8 characters (Japanese) into a MySQL database which can be solved by running the query:
Immediately after connecting to the database.
Edit: Here is an example of using
SET NAMES 'utf8'after connecting to a database: