Charset=utf8 not working in my PHP page

character-encoding, css, html, php, utf-8

Solution

sounds like you don't serve your content as utf-8. do this by setting the correct header:

header('Content-type: text/html; charset=utf-8');

in addition to be really sure the browser understands, add a meta-tag:

<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

note that, depending on where the text comes from, you might have to check some other things too (database-connection, source-file-encoding, ...) - i've listed a lot of them in one of my answers to a similar question.

Problem

I got a problem with my character encoding. Whenever I load a page in the browser, It shows like this: So I need to manually configure it by the browser. Thanks for your help.

Original source

Related problems