Unicode characters or encoded entities [duplicate]

百般思念 提交于 2019-12-02 09:51:08

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!