Re: [Rpy] unicode support

2009-05-01 Thread laurent
On Mon, 2009-04-27 at 16:26 +0200, Toby HOCKING wrote: > One more thing: in R it seems accent strings have the encoding "UTF-8" > whereas python strings come into R always with an unknown encoding. > Maybe this has something to do with it? > > thock...@stagiaire-desktop:~/rpy$ R > > Encoding

Re: [Rpy] unicode support

2009-04-28 Thread Toby HOCKING
Hi again, here is a temporary solution that I am using, in case anyone encounters the same problem and wants a quick dirty hack solution: def encode_utf8(D): """Encode all unicode strs in a dict to normal strs. The idea is that you are going to call an R function with RPy, and yo