Date: Mon, 19 Jul 2010 10:20:54 +0200 From: Matthias Apitz <guru@unixarea.de> To: Leonardo =?iso-8859-1?Q?M=2E_Ram=E9?= <martinrame@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: utf8 characters in terminal Message-ID: <20100719082054.GB2842@current.Sisis.de> In-Reply-To: <181707.32227.qm@web113503.mail.gq1.yahoo.com> References: <181707.32227.qm@web113503.mail.gq1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100719082054.GB2842>