I used the Spanish language in my site. When I, like, í, á, é, or it will be inserted into the DB properly, but it can not be displayed at the front end, it displays like display at the front end
For example:
included name: This was properly written for the test in the database but it was shown in the front as a test instructor.
I joined & lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" />
also used
It does not have anything to do with cleverness.
- Check the DB charset where you store the data and set it to UTF-8 General CI
- Check the DISC checkset
SET NAMES Utf8
- Check the output script if it is in the UTF, then you can do it in a meta charset or header content-type.
Content-Type: Text / html; Charset = "UTF-8"
or
& lt; Meta charset = "utf-8" & gt;
or & ltMeta http-equiv = "content-type" content = "text / html; charset = UTF-8" & gt;
After these tasks, you need proper output.
You can also optionally check that the functions that work on the string support UTF-8.
Comments
Post a Comment