Well, I'd say an ideal solution would be for gedit to detect the encoding by itself, and thus avoid all these tricky configurations. I've experimented a bit with universalchardet, which comes with Mozilla project, and its separate library libuchardet. I found it to be smart enough in most cases. Attached is a preliminary patch I did to support gedit with uchardet, for preliminary early preview.
I'll come up with a testing package a bit later. ** Patch added: "uchardet.diff" https://bugs.launchpad.net/ubuntu/oneiric/+source/gedit/+bug/819714/+attachment/3052309/+files/uchardet.diff -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gedit in Ubuntu. https://bugs.launchpad.net/bugs/819714 Title: Can not display GB2312/GB18030 encoded chinese files Status in Light-Weight Text Editor for Gnome: New Status in “gedit” package in Ubuntu: Incomplete Status in “gedit” source package in Oneiric: Incomplete Bug description: GB2312/GB18030 encoding is the national standard in China, gedit should support them. To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/819714/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

