You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Occured to me when inspecting @KuraFire's PR (#57) for translation. Should we use character entities to replace special characters (apart from < and >) or because of the <meta charset="UTF-8"> we can just paste it in place instead to save character bytes?
The text was updated successfully, but these errors were encountered:
Saving character bytes on entities is generally a waste of time/energy. However, I'm personally* generally in favor of using actual UTF-8 characters over entities, because that's kind of the point of using UTF-8 in the first place.
* Not particularly backed up by research into what would be a best practice here.
—
Faruk Ateş, co-founder https://presentate.com/
Occured to me when inspecting @KuraFire's PR (#57) for translation. Should we use character entities to replace special characters (apart from < and >) or because of the <meta charset="UTF-8"> we can just paste it in place instead to save character bytes?
Reply to this email directly or view it on GitHub: #61
@diagramatics - There are the rules from the Google HTML/CSS Style Guide which I personally consider as quite general:
There is no need to use entity references like —, ”, or ☺, assuming the same encoding (UTF-8) is used for files and editors as well as among teams.
The only exceptions apply to characters with special meaning in HTML (like < and &) as well as control or “invisible” characters (like no-break spaces).
Occured to me when inspecting @KuraFire's PR (#57) for translation. Should we use character entities to replace special characters (apart from < and >) or because of the
<meta charset="UTF-8">
we can just paste it in place instead to save character bytes?The text was updated successfully, but these errors were encountered: