Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I open a notepad and copy this from it:


to a file opened with vi on the machine, I get this:


My question: Why? What could the problem be? Logfiles on the server has the same problems. How can I verify if UTF-8 support is ""installed well"" on the SLES?

share|improve this question
up vote 1 down vote accepted

That's almost certainly a multi-byte UTF-8 character getting interpreted as 2 single-byte characters in some other encoding.

The ability to show UTF-8 is more a problem on the client side than the server side. If you are running vi in an xterm, you should start the xterm with UTF-8 support:

xterm -u8 -fn '-misc-fixed-bold-r-normal--15-140-75-75-c-90-iso10646-1'

I confess that X11 fonts are something of a mystery to me, but the font specified above has always worked for me. Perhaps I've been lucky.

If you're using a Windows machine to run your graphics, the PuTTY terminal emulator can display UTF-8. Look in the "configuration" window, "Window" item, "Translation" sub-item. The "Received data assumed to be in which character set" pull-down menu has a "UTF-8" item. Select it.

share|improve this answer
So it's a client-side problem on the Desktop? – evachristine Feb 27 '14 at 9:50
@evachristine - that's my guess, due to the way that UTF-8 works, and the situation you describe as troublesome. – Bruce Ediger Feb 27 '14 at 13:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.