Your just doing arbitrary code patch's trying to patch in things using some other language that is not included in our distro.
The meta tag to say what charset is loaded is right at the top of the language file the program uses. The language file is located in the languages directory. If you properly create your own language file you can load your own language and its charset.