1

My environment is set to use UTF-8. I produce a file in UTF-8 encoding. It works correctly on the terminal.

For example:

$ echo ééé > test

$ cat test

img UTF-8 encoding

$ echo é | od -t x1
0000000 c3 a9 0a
0000003 

But medit doesn't show it correctly:

img UTF-8 encoding

I am using Manjaro xfce 0.8.11 / x86_64 and my locale.conf is LANG=fr_FR.UTF-8.

When displaying other locales, such as Arabic or Chinese characters, I don't have this issue!

A similar issue from a user on the manjaro.fr forums : Problème encodage UTF-8 NON valide

  • 2
    The problem is with your medit application that seems to assume the file uses an iso8859-1 (or -15) encoding and not UTF-8. 0xc3 0xa9 is é in UTF-8 and é in iso-8859-1 or iso-8859-15 (aka latin1 and latin9) – Stéphane Chazelas Dec 31 '14 at 22:39
  • What makes you think the UTF-8 encoding is invalid? It looks like medit is the culprit here. To confirm, post the output of echo é | od -t x1. – Gilles Dec 31 '14 at 23:09
  • @StéphaneChazelas using "Mousepad" screenshot Mousepad using "gedit" screenshot Mousepad and $ echo é | od -t x1 give me : 0000000 c3 a9 0a - 0000003 – SMed79 Jan 1 '15 at 5:50
  • Which confirms what @Gilles and I said: that's valid UTF-8 but medit treats it as Latin1 – Stéphane Chazelas Jan 1 '15 at 7:52
  • I have submit a bug issue to "medit" home page sourceforge.net/p/mooedit/bugs/185 Thank you for support and help. – SMed79 Jan 2 '15 at 1:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.