From owner-freebsd-hackers@freebsd.org Thu Feb 1 07:28:39 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39810EC8C0A for ; Thu, 1 Feb 2018 07:28:39 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (mail.dpedia.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CA51C7C64C for ; Thu, 1 Feb 2018 07:28:38 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.130.116] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1eh9IS-0005XZ-3Y for freebsd-hackers@freebsd.org; Thu, 01 Feb 2018 08:28:36 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id w117SWhn002311 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 1 Feb 2018 08:28:32 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id w117SWjn002310 for freebsd-hackers@freebsd.org; Thu, 1 Feb 2018 08:28:32 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 1 Feb 2018 08:28:31 +0100 From: Matthias Apitz To: freebsd-hackers@freebsd.org Subject: Re: Printing UTF-8 characters Message-ID: <20180201072831.GA2239@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.130.116 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 07:28:39 -0000 El d=C3=ADa jueves, febrero 01, 2018 a las 01:15:34a. m. -0500, Farhan Khan= escribi=C3=B3: > Hi everyone, >=20 > Is there a standard way to render historically non-printable UTF-8 > characters that will work across all terminals? I am trying to modify a > standard FreeBSD utility that may occasionally work with characters in > other languages. On some terminals, specifically FreeBSD running in > VirtualBox, I see question-marks rather than the expected character. I > wonder if this is the proper way to display such non-printable characters > or no? Not sure what you mean with 'historically non-printable UTF-8'. UTF-8 is an encoding form (one of more) to present Unicode Codepoints in bytes. If you want to "print" them to paper or PDF there are ways to write them with Postscript and with the correct font-support to bring them into human readable form. If you want to "display" these UTF-8 bytes you need a terminal-software with UTF-8 support, for example from the ports x11/rxvt= -unicode and the fonts for the Codepoint areas you want to display. Btw: Can you display my signature line correctly? There is an UTF-8 encoded Codepoint for a mobile telephone :-) matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea.d= e/ =F0=9F=93=B1 +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub