I had a problem with building the Arabic text, it looks good on the console, but it is not quite right. (inverted and single letters)
the code:
x<-"السلام عليكم"
> x
[1] "السلام عليكم"
> plot(1:10,main=x)
gives

Some information about the corresponding session:
R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
I tried so many suggested solutions, but all of them just don't work.
source
share