Skip to content Skip to sidebar Skip to footer

Unicode Characters Or Encoded Entities

I'm using some special characters like × (×) or … (…) in my html pages. Somewhere I'm using unicode character directly, but somewhere I'm using encoded enti

Solution 1:

If you use Unicode directly there's a chance that someone saves the file with the incorrect encoding and all characters get mangled.

On the other hand, using entity codes means you can't search effectively in the source code; you have to remember how each non ASCII character is encoded. Same goes for database content. Readability suffers,too.

I prefer to use Unicode directly and everyone on the team knows that files must be encoded in UTF-8.

Post a Comment for "Unicode Characters Or Encoded Entities"