Character Encoding in Vi and Vim
You might found that i18n and l10n are becoming more important in every development process especially in production environment. Why? There are too many character encoding on this earth and they often conflict to others. As a result, universal encodings are proposed as Unicode standard. That means developer should keep in mind to store data in Unicode format so that i18n will be treated correctly. My favorite editor is Vi or Vim, there is a trick to specify character encoding by adding below code to .vimrc.
if has("multi_byte") set encoding=utf-8 setglobal fileencoding=utf-8 set bomb set termencoding=iso-8859-1 set fileencodings=tis-620,iso-8859-1,utf-8 endif
Technorati Tags: English, IT, Tips and Tricks, Encoding, I18n, L10n, Vim, Unicode
- sugree's blog
- 2732 reads
Post new comment