From h@wickh@m @ending from gm@il@com  Fri Aug 31 00:18:17 2018
From: h@wickh@m @ending from gm@il@com (Hadley Wickham)
Date: Thu, 30 Aug 2018 17:18:17 -0500
Subject: [Rd] build package with unicode (farsi) strings
In-Reply-To: <CAJuCY5zsiVvu_+4hq=6OmWdprNTC1Cu07Vq=zRZdzqfcGMObwg@mail.gmail.com>
References: <CAJTBV4V4x=tuv72GZtnQfESG_STHufEDdJfKkvCHkb2zh9XwJQ@mail.gmail.com>
 <CAJuCY5zsiVvu_+4hq=6OmWdprNTC1Cu07Vq=zRZdzqfcGMObwg@mail.gmail.com>
Message-ID: <CABdHhvGdyEG-q9fsBmL8dJ7uqTdGEiD0t4u0fFVO0Jh3RnodTA@mail.gmail.com>

On Thu, Aug 30, 2018 at 2:11 AM Thierry Onkelinx
<thierry.onkelinx at inbo.be> wrote:
>
> Dear Farid,
>
> Try using the ASCII notation. letters_fa <- c("\u0627", "\u0641"). The full
> code table is available at https://www.utf8-chartable.de

It's a little easier to do this with code:

letters_fa <- c('???','?','?','?','?','?','?','?','?','?','?','?')
writeLines(stringi::stri_escape_unicode(letters_fa))
#> \u0627\u0644\u0641
#> \u0628
#> \u067e
#> \u062a
#> \u062b
#> \u062c
#> \u0686
#> \u062d
#> \u062e
#> \u0631
#> \u0632
#> \u062f

Hadley

-- 
http://hadley.nz



[Rd] build package with unicode (farsi) strings
Hadley Wickham