htaccess and UTF-8

  • Hello Easter-Friends ;)


    Yesterday i uploaded a site to. After I wanted to test it online. But while I requested the page, I got a error message (Internal Error 500).


    I needed a while until I found the error.


    The htaccess was in UTF-8. I dont know why it produce a error, because the server also runs in utf-8.


    So, what can I do?


  • Take a look on the htaccess with notepad++. The htaccess should be UTF8 without BOM!


    A really good answer, I think. Often the BOM (EF BB BF) is a problem
    for editors and/or browsers.


    But there is more to do for handling UTF-8 with mysql and apache.
    One example in my.cnf of mysqld:
    collation_server=utf8_unicode_ci
    character_set_server=utf8


    Most of servers I knew dont running "real" UFT-8.



    tom


  • Chuckles... :D Do not confuse default collation and character set from the my.cnf and those really set by you or any script that handle your database schema... :D

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().