Skip to content
Prev 313369 / 398502 Next

Writing escaped unicode

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.
[1] "Unicode character: ?"
[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!