utf8 special characters problem by forms |
When you put special characters in my form they change into � when the page reloads. It also destroys my input because the characters are not placed in the database. This happens only with opera(probably chrome also) and firefox. Internet explorer works fine.
Does somebody know how to fix this.
Offtopic: I don't see closing body and html tags at the bottom of the page with the form.
There should not be white-space (new-lines, spaces) characters before <!DOCTYPE HTML>.
And here is the problem in the source:
<meta charset="utf-8"> - at the top - Ok <form action="http://www.rommelmarkten.org/toevoegen" method="post" accept-charset="iso-8859-1"> - this is how the form opens, why accept-charset="iso-8859-1"?
Thank you very much! I putted the accept-charset= in the button instead of the form. It is working. I will fix the other issue also.
"accept-charset" will not work on your button, it will not do anything but invalidate your page. Check this:
- <meta charset="utf-8"> - browser needs to be set to utf-8 (should be for all modern browsers) Google even removed this option and auto-detects. - $config['charset'] = 'UTF-8'; - database utf8_unicode_ci |
Welcome Guest, Not a member yet? Register Sign In |