Vim provides several features helpful for working with character encodings; both legacy encodings, such as Latin-1, and modern Unicode encodings, such as UTF-8.
A lightweight example that loads a simple prebuilt text editor window from a Glade UI designer file and implements open, save and quit operations via menu items.