formmailer Posted October 12, 2011 Posted October 12, 2011 Hi, I was looking at the source of one of my pages and noticed that the body (and some other parts) contained å ö ä ë etc. Shouldn't these characters be encoded like å &öuml; ä ë? Or is this no longer required and am I just an old fashioned HTML4 user? /Jasper
ryan Posted October 12, 2011 Posted October 12, 2011 I can't think of any reason why those characters would need to be entities in UTF-8 output. I'm guessing you are talking about a TinyMCE field, so that's what is determining what should be made into entities. On other text-based fields, you can select what text formatters you want to apply (including entity encoding). However, since we're using UTF-8 I don't think that the characters you indicated would ever be entity encoded, though I could be wrong.
formmailer Posted October 12, 2011 Author Posted October 12, 2011 Cool! When I didn't use a CMS to create my sites, I always used HTML4 and validated it using the W3C validator and it always pointed out that the should be entity encoded. I just validated my PW site using the W3C validator and it went didn't have any problems with it, but I just wanted to be sure. And since it validated, my guess is that you were right! /Jasper
Soma Posted October 12, 2011 Posted October 12, 2011 No need to encode sepcial chars if you're using utf-8.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now