On Thu, Aug 30, 2018 at 2:11 AM Thierry Onkelinx <thierry.onkel...@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 ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel