Re: [R] file reading /problems with encoding

2010-03-02 Thread T . Wunder
Quoting Uwe Ligges : R is not able to re-encode the file to the native encoding. But if you keep it in UTF-8, what is the problem to grep for the specific characters (as grep and friends support the argument useBytes these days)? The Problem with UTF-8 is that I'm not able to cat a valid xml-

Re: [R] file reading /problems with encoding

2010-03-01 Thread Uwe Ligges
R is not able to re-encode the file to the native encoding. But if you keep it in UTF-8, what is the problem to grep for the specific characters (as grep and friends support the argument useBytes these days)? Best, Uwe Ligges On 01.03.2010 17:15, t.wun...@stud.uni-heidelberg.de wrote: Hello

Re: [R] file reading /problems with encoding

2010-03-01 Thread T . Wunder
Hello Uwe, Quoting Uwe Ligges : You can arrange the former without a loop by xml <- paste(t, collapse="") Thank you, another trick to improve my R-skills :) For the other problem you are reporting: Can you make (the relevbant part of) your file available (say on some web site) so that we can

Re: [R] file reading /problems with encoding

2010-03-01 Thread Uwe Ligges
On 01.03.2010 15:45, t.wun...@stud.uni-heidelberg.de wrote: Hello, I'm a little frightened because of a problem that occured lately as I tried to read in a xml-file (for replacing some variables in the string with values from a data frame). The almost biggest problem is the encoding of the xml

[R] file reading /problems with encoding

2010-03-01 Thread T . Wunder
Hello, I'm a little frightened because of a problem that occured lately as I tried to read in a xml-file (for replacing some variables in the string with values from a data frame). The almost biggest problem is the encoding of the xml-file. Since it is generated by Word 2007 its encoding