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 <mho...@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@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac