UTF-8 with mysql and php in freebsd swedish chars (åäö) [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: UTF-8 all the way through Hi I recently switched from linux to freebsb on my server, and now my database is acting up. When I try to echo a string containing å,ä or ö (swedish letters) it becomes a questionmark. ie: Söndag becomes S�ndag. echo "ä"; works. $ file --mime test.php test.php: text/plain; charset=utf-8 test.php <?php $a="å"; mysql_connect("localhost", "root", ":-)"); mysql_select_db("lidev"); $result