Skip to content
Prev 37944 / 63424 Next

Encoding problem in Rd file

Dear all,

I have a problem with an Rd file containing French accentuated
characters. I have uploaded the file at
http://filex.cirad.fr/get?k=cjW7lImMaNC6Ci2vX0H

I have declared
Encoding: latin1
in the package DESCRIPTION file

and I have added
\encoding{latin1}
in the header of the Rd file.

When I compile the package manual, I have LaTeX errors:

! Package inputenc Error: Unicode char \u8:?F not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.579 ...ain. Aspects m??thodologiques.} Rev. ?  F
                                                  aug??re, O., Dock??s, A.-C...

Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.


! Package inputenc Error: Unicode char \u8:?F not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.581 ?  F
          aug??re, O., Tillard, E., Faug??re, B., 1992. \emph{Prophylaxie ch...

Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.


! Package inputenc Error: Unicode char \u8:?\end not set up for use with LaTeX.


See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.587 \end
          {References}
Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.

***********
I can easily find the offending lines using
showNonASCII(readLines(file)). However, I don't know what to do to
solve the problem. The strange thing (to me!) is that the pdf is
actually built with appropriate accentuated characters, at least when
I look at it with my pdf viewer (Acrobat reader).

My config is:
R version 2.11.1 Patched (2010-09-30 r53117)
Platform: i386-pc-mingw32 (32-bit)

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252
[3] LC_MONETARY=French_France.1252 LC_NUMERIC=C
[5] LC_TIME=French_France.1252

attached base packages:
[1] tools     stats     graphics  grDevices utils     datasets  methods
[8] base

other attached packages:
[1] fortunes_1.4-0