From owner-freebsd-questions@FreeBSD.ORG Mon Jul 19 08:20:54 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FC451065675 for ; Mon, 19 Jul 2010 08:20:54 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id A36508FC1F for ; Mon, 19 Jul 2010 08:20:53 +0000 (UTC) Received: from [193.31.11.193] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Oalam-0004x5-2a; Mon, 19 Jul 2010 10:20:52 +0200 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id o6J8KsgU002970; Mon, 19 Jul 2010 10:20:54 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id o6J8Ksic002969; Mon, 19 Jul 2010 10:20:54 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Mon, 19 Jul 2010 10:20:54 +0200 From: Matthias Apitz To: Leonardo =?iso-8859-1?Q?M=2E_Ram=E9?= Message-ID: <20100719082054.GB2842@current.Sisis.de> Mail-Followup-To: Matthias Apitz , Leonardo =?iso-8859-1?Q?M=2E_Ram=E9?= , freebsd-questions@freebsd.org References: <181707.32227.qm@web113503.mail.gq1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <181707.32227.qm@web113503.mail.gq1.yahoo.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) X-Con-Id: 51246 X-Originating-IP: 193.31.11.193 Cc: freebsd-questions@freebsd.org Subject: Re: utf8 characters in terminal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 08:20:54 -0000 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 - 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!