On Thu, Dec 31, 2009 at 08:01:15AM +0000, Prof Brian Ripley wrote:
On Thu, 31 Dec 2009, Jens Elkner wrote:
does anybody know, how to enforce a certain encoding for
readCitationFile()? Haven't found any usable documentation for this :(
Yes. Well, just started to dive into R and that's probably the problem
(like in old UNIX times), the help aka man pages are very useful and
sufficient, if you know the language/system ... ;-)
From the help file in current versions of R (2.10.1 patched,
R-devel)
?readCitationFile? make use of the ?encoding? element (if any) of
?meta? to determine the encoding of the file.
Ah - ok, haven't applied the latest release.diff. But anyway, for a
newbie it is not easy to find out, what "meta" is expected to be.
so
readCitationFile(basecit, list(encoding="latin1"))
Yepp - with a leading uppercase E it works. Thanx a lot!!! :)
is probably what you are looking for. And PLEASE do use the
recommended portable encoding names.
OT: Wondering, what does "recommended portable encoding names" in this
context mean (e.g. AFAIK 'latin1' is not a standardized name ...).