Why does not IntelliJ convert the special html characters?

Answered

Why does not IntelliJ convert the special html characters?
If I write:

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

and at the bottom right I read:

CRLF URF-8

why should I replace "°" with the string "&deg;"?

I am writing a JSP file on maven project.

Thanks

0
2 comments

Thanks for the reply. So IntelliJ does not handle special characters to perfection like a browser does. If I write "°" in a UTF-8 encoded page the browser reads the crypt quietly without me having to write "&deg;". If I remove the check from "XML entities" I do not know any kind of change in the functioning of the IDE. The discussion is missing the full path "File> Settings> Editor> General> Code Folding". The command "Edit> Encode XML / HTML Special Characters" works perfectly and I will use that surely but I would like to write "°" and see "°" without converting to "&deg;". With modern browsers when the file is UTF-8 encoded, the correct HTML5 specification exists and conversion is no longer needed. I hope you can understand my bad English. If this happens you are very skilled.
See you soon

0

Please sign in to leave a comment.