1) Please send reproducible code. In this case possibly with a link to the
Snw file.

2) Try setting the charset in LaTeX:  \usepackage[utf8]{inputenc}



On Tue, Jun 9, 2009 at 12:07 PM, Arnau Mir Torres <arnau.mir@uib.es> wrote:

> Hello.
>
> I want to write my notes in Sweave in my own language (spanish). But my
> language has accents and when I run Sweave in R to translate my Snw file
> into the tex file the accents are translated into unrecognizable characters.
> For example, the word "camión" (truck) is translated into "camiÃ³n"
>
> Somebody knows how can I do it?
>
> One solution I don't like is using a perl program to substitute my accented
> letters into "normal" accents in LaTeX in my Snw file before running Sweave.
>  That is:
>
> á -> \'a
> é -> \'e
> ...
>
> The problem is when I run the spelling program, it doesn't work because the
> spelling doesn't recognize the words with "normal" accents.
>
> There is a solution but it is tedious:
>
> 1)  substitute the accented letters letter into "normal" accents in LaTeX.
> 2) run Sweave and create the tex file.
> 3) subtitute the "normal" accents into the accented letters in the tex
> file.
>
>
> My question is:
> Is there another way to do it?
>
>
> Arnau.
>
> ------------------------------------------------------------
> Arnau Mir Torres
> Edifici A. Turmeda
> Campus UIB
> Ctra. Valldemossa, km. 7,5
> 07122 Palma de Mca.
> tel: (+34) 971172987
> fax: (+34) 971173003
> email: arnau.mir@uib.es
> URL: http://dmi.uib.es/~arnau <http://dmi.uib.es/%7Earnau>
> ------------------------------------------------------------
>
>

	[[alternative HTML version deleted]]


