Thanks for the reply, although I still can't get it to work. I upgraded to
aquamacs 1.8 and also set the locale in bash as follows,

$ locale
LANG="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_CTYPE="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"

but I still get the same error. Note that I couldn't work out how to test
emacs in the terminal (M-x R didn't do anything), but I guess it's the same
settings for aquamacs.

Is there some kind of (set-language-environment 'UTF-8) thing to place in my
.emacs file?


Best regards,

baptiste



2009/6/30 Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>

> baptiste auguie <baptiste.auguie@googlemail.com> wrote:
>
> > Dear list,
> >
> > The following code returns an error when I send it from aquamacs, on Mac
> > OSX,
> >
> > plot(1, main=expression("\u03B3"))
> > Error: invalid \uxxxx sequence (line 1)
> >
> > while it works fine in a terminal or in R.app. I have no idea how to
> > fix this problem.
>
> I see similar behaviour on my Emacs running on OSX.  On my set up at
> least the problem is because the shell variable LANG is not set within
> Emacs.
>
> To see if that is the case for you, try the following to start
> Emacs:
>
> $ LANG=en_GB.UTF-8 emacs
>
> and then within emacs, try M-x R and it should work.
>
> Stephen
>

	[[alternative HTML version deleted]]

