i have a file .Rnw with non unicode characters in utf8. When I compile with Sweave(file, encoding="UTF-8"), the .tex output has the unicode characters in the form <U+00F3>.

How can I get the .tex output in utf8?


The reason that it was happening is that I was compiling from php executing bash script, so I didn't have the LANG environment variable set. In the script I set the variable export LANG=en_US.UTF-8, and R compiles good.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.