Problem with UTF-8 [duplicate]

2

Good. I'm doing a project, and I have several accents in my text. I already joined:

<meta charset="utf-8"/> 

in my code and still did nothing and I do not understand why ... Any help ??  

    
asked by anonymous 06.01.2017 / 11:59

2 answers

6

It's not enough just to set the charset. Your .html (or any other extension) file must be encoded as UTF-8. Open it in a code editor (like notepad ++, phpstorm, netbeans ...) and check its "encoding".

Maybe your file is ANSI, just convert to UTF-8.

There is a great article on the net about this: #

    
06.01.2017 / 12:36
2

Hello,

If you use notepad ++, for example, here is an example of how to put your files in UTF-8:

In this way your files will be encoded into UTF-8 and will be accented.

Cumps,

    
06.01.2017 / 12:44