I'd like to write unicode strings using the "\u" escape syntax. According to the documentation, print.default or encodeString will escape unicode using the \u convention. In practice, I can't make it work.
> b="Unicode character: \ufffd" > print.default(b) [1] "Unicode character: �" > encodeString(b) [1] "Unicode character: �" I want to write the string back out in the same escape formatting as I read it in. This is because I'm interfacing with some Ruby code that requires unicode to be in this escaped format. Thanks in advance! ______________________________________________ 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.