Unicode characters in script?
I have, it doesn't seem to make a difference. It looks like the problem concerns the PDF output device being used from Rscript as opposed to quartz in R.app.
On Thu, Aug 11, 2011 at 1:26 PM, R Erickson <raerickson at gmail.com> wrote:
Mylke, Have you tried using the "\u###" tool, where ### is the Unicode number? For example, plot(c(1:10) ~ c(1:10), main="\u2202 foobie bletch \u0192") produces a del character and italics function "f". You may wish to use different Unicode characters, but these were the first character codes I found. To look up the Unicode numbers, I personally like to use the "insert special characters" tool in Pages, which may be found at: Edit -> Special characters Alternatively, a web search for "Unicode characters" should give you several sites to find this information at as well. Hope this helps! Richard Erickson On Thu, Aug 11, 2011 at 1:35 PM, Michael Hoban <mhoban at ucsc.edu> wrote:
Hi all- I tried searching before posting, but this is one of those tricky questions to search for. My issue is this: within the R.app gui, I can use extended characters in plot labels without any issue (specifically in my case the ?, lowercase delta), for example:
plot(c(1:10) ~ c(1:10), main="?foobie bletch?")
However, when I try to do the same in a script from the terminal (interpreted by Rscript), I get a bunch of errors related to character encoding: ?.... ?conversion failure on '?foobie bletch?' in 'mbcsToSbcs': dot substituted for <e2> ?.... Is there a way to make this work? Or is Rscript not equipped to handle multibyte characters? thanks in advance, _mykle
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac