Dear R-Help,

I am using the RDF package/ R 2.14 with the RDF package to download data
from a website, and then use R to manipulate it.

Text on the website is UTF-8.  The RDF package's rdf_load command is
converting it into a different encoding, which converts non-ASCII
characters to unicode codes.

On the webpage/sparql RDF: "4.5µg of cDNA was used"

In R, the RDF triple gives: "4.5\\u00B5g of cDNA was used"

I can't seem to convert it back from \\u00B5  into "µ".

I've tried iconv with various settings without success:
> iconv(test, "latin1", "UTF-8")
[1] "4.5\\u00B5g of cDNA was used"

And, I tried Encoding, to see if I could figure that out, but it returns
"unknown" on my string.
> Encoding(test)
[1] "unknown"


Anyone have any ideas on how to correct/convert the text encoding?


Thanks!
-Emily

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to