[ESS] ESS and special characters in Aquamacs

Ista Zahn istazahn at gmail.com
Wed Dec 19 18:52:06 CET 2012


Hi Peter,

This is a bit of a stab in the dark, but I find that often

Sys.setlocale("LC_ALL", "en_US.UTF-8")

does the trick. If not you can check available locales with

system("locale -a")

then replace "en_US.UTF-8" in Sys.setlocale with the correct one.

HTH,
Ista

On Wed, Dec 19, 2012 at 12:22 PM, Petar Milin <pmilin at ff.uns.ac.rs> wrote:
> Hello all!
> I am very new in Mac OS world (coming from long Linux experience, from
> Ubuntu and Debian, to Fedora). After some search for the best editor I
> decided to go for Aquamacs, which fits nicely to my needs (Python,
> LaTeX, R, and very little C). ESS is great, but I cannot make it print
> special characters (Croatian, Serbian etc.). I have found one post
> explaining similar problem:
> http://emacs.1067599.n5.nabble.com/unicode-character-in-aquamacs-td237707.html
> However, there is no solution. It seems that the guy lost his patience
> and went for some other editor.
>
> Problem occurs when i ask things like:
>> bargraph.CI(response=Y, x.factor=X,
>>             legend=TRUE, xlab='sunčani meseci',
>>             ylab='izračunate vrednosti')
>
> Even if I wrap this up between:
>> pdf('figure.pdf', h=6, w=6, encoding='CP1250')
>> dev.off()
>
> I am getting only dots, instead of special character like "čćžšđČĆŽŠĐ".
>
> Can anyone help me? Please, I would appreciate a lot. I would like to
> stick with Aquamacs, which works so greatly.
>
> Being a newbie, I am not sure whether this is due to ESS or Aquamacs.
> However, I see special characters in Aquamacs, and I can have them, for
> example, if I run LaTeX.
>
> All the best,
> PM
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list