From owner-freebsd-hackers@freebsd.org Thu Feb 1 06:15:56 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 DC9B5F12E05 for ; Thu, 1 Feb 2018 06:15:55 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: from mail-yw0-x22a.google.com (mail-yw0-x22a.google.com [IPv6:2607:f8b0:4002:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6CF7B74DB5 for ; Thu, 1 Feb 2018 06:15:55 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: by mail-yw0-x22a.google.com with SMTP id x62so9584294ywg.11 for ; Wed, 31 Jan 2018 22:15:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=bD1uj4pArAejGvvRydxWBWt9VpEWegmxW0I7J+zRg0A=; b=pGt2KJelwmvcADygWzFN27LrfVHtCA6bsffV2zlbPmV64pyFXrQjPpjxXpTD72FGMG 1ycGHCiJs/3GioheWyjrrdFG868QXqYzB1y7g6fbRx8RidKX39293t7yq3NuGN/T1+ox pl1wa2w7n3r5/a8MHMwx1kUpKaE+U3Xz3/f/7QdfqYfLZwzBbmRNqEat3EmNgVQgXgNO gciqWOvcrCn2Pm0xnTxGPop+lqXNuO4aDRh6rGMfWhyqCqFsh4q/tPUmkOEbVHNqSsfl mdzY/U6BZsPD4kF1xb+sKTM/n0caOsRMl7GOZ89jbkpt+jmy4khuTSmS9aXpJCp4AVL2 MWCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bD1uj4pArAejGvvRydxWBWt9VpEWegmxW0I7J+zRg0A=; b=h9sEBoYpf/5Xgj0YTm9Gf1jx6ebSZiS4N17qL6V6+RcyLmkX4oT1uqJAvtxzcbPUnq NnSZfqP9VGlI9BjYLRKOMU6M8X8VfhTz/zj2iw9u7kyGkXCphWYaZkTMaxkrYRwqDMYj LTu/T7rwshByX89iw5MftUmfRYH2+5AzT33XLeGOtyFbijqzR0i4QIezQedhh8NeCuXL ccnMlFpz7AoRv/vVxv7a7tJ+bubF32HsE91gdeGbIILZmunfCqOxz6+CkpWyC4OueHD8 5biBXOnLxvV7MTauBCCJMWSaWkGPE86ASwZT7q+0ZbDZ8Db1am1J5F9pgzImxU0KBV17 jhAA== X-Gm-Message-State: AKwxytc+kzmNsoXj23VlmPu9FAD/1i0w7is1IT1tymrJ2JEHW+g+5Y+B D6xorD/v0sEaFVVPnyBS5Grhu1aBpditW/Objr5WUQ== X-Google-Smtp-Source: AH8x225DVvzCYf49mSdSQMjaEBsHH5GCfROW0X3OE37Wo6NBoopYvGvt7tPFQOldI6gStxVs8NSCWpcQNj0TQqYCfD8= X-Received: by 10.129.124.67 with SMTP id x64mr24938189ywc.418.1517465754644; Wed, 31 Jan 2018 22:15:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.94.214 with HTTP; Wed, 31 Jan 2018 22:15:34 -0800 (PST) From: Farhan Khan Date: Thu, 1 Feb 2018 01:15:34 -0500 Message-ID: Subject: Printing UTF-8 characters To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 06:15:56 -0000 Hi everyone, 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? I am not the most versed in encoding standards, so pardon any mistakes I might have made. Thanks, -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE