Skip to Content

odfWeave error source document containing non-ASCII chars

Getting this error calling ODFWeave on my doc.

 Pre-processing the contents
 Sweaving  content.Rnw 
 
 Error: ‘content.Rnw’ is not ASCII and does not declare an encoding

I've seen some ways you can add an encoding switch in LaTeX docs "(Sweave --encoding=utf-8)", but don't know if this can be done with odfWeave

I've worked around it before by converting the source doc back to ASCII, but ideally it would be nice if the conversion would run with whatever is in my doc (and some names, for example, require a non-ASCII charset).