If you have a pretty recent Linux system like I have, you most likely have had the pleasure or the following message when starting mcedit:
You can then "Fix" it or "Skip" and choose to remember it. For me, fixing or skipping the dialog does not seem to do anything but that is most likely because I don't use the charset completely (no 'weird' characters in my text files). Even worse, if you find it to do something -- chances are you want to use the Fix option -- and tick "Do not ask again", the next time the file is broken again! This is because the tick box does not respect your choice but rather takes it as "Skip any problem detection in the future"...
Annoying as it may be, the real cause is the fact that you are most likely not using the correct character encoding on your system by default. Chances are, when you update your system you get this annoying "Generating code page" message a million times over. If so, you just generated support to view every text encoding known to man -- good for you!
I on the other hand, will only view UTF-8 files and I'm not really interested in anything else. So I decided to reduce codepage support to 2 languages: Dutch and English. Note that the Dutch support in this case tends to translate messages in programs (ugh) but it also adds support for the Euro sign: €
Open up /etc/locale.gen and add the following lines:
I cheated a bit by replacing the default ISO-8859-1 or ISO-8859-15 character mapping for Dutch with the UTF-8 one. It seems this choice is allowed and gives me proper UTF-8 support with the nl_NL locale.
Save the file and run 'locale-gen':
Looks familiar? Yes that is the dreaded locale generation but this time it only created the locales we will use meaning it completes in a second instead of 10 minutes... Run 'locale -a' to make sure you got what you wanted:
Now open up '/etc/env.d/02locale' and put the locale selection in and reload afterwards:
All done, we switched to the new locale and mcedit can stop complaining now. As an added bonus each file you edit will be created in UTF-8.