utf8 characters in terminal
Matthias Apitz
guru at unixarea.de
Mon Jul 19 08:20:54 UTC 2010
El día Sunday, July 18, 2010 a las 11:45:40AM -0700, Leonardo M. Ramé escribió:
> Hi, I installed Freebsd 8.1-RC2 in my home server to be used mainly as a file server, it used to have Ubuntu 9.10-Server installed on it, then I backed up (.tar.gz) the /home directory, that contains many spanish accented files and subdirectories in UTF8.
>
> Now, when I access this machine using ssh, some of those files include "??" and "\303" or similar characters instead of the correct accents.
>
> What can I do to show the files in the correct way?.
>
> Leonardo M. Ramé
> http://leonardorame.blogspot.com
I assume your are talking about the names of the files and dir (and not
about the content). Check if the names contain correct UTF-8 encoding
with something like:
$ ls | od -t x1 | more
The have UTF-8 inside the xterm you need somethink like this:
Port xterm from the ports to get UTF-8 support:
# cd /usr/ports/x11/xterm
# make install WITH_256_COLOR=yes WITH_WIDE_CHARS=yes
Then you may use:
$ LANG=es_ES.UTF-8 xterm -T utf8 -fn 10x20 -sb -sl 1024 -cr blue
HIH
matthias
--
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru at unixarea.de> - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel? Not in my name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
More information about the freebsd-questions
mailing list