[reportlab-users] Error using encoding="utf-8" to output RML to PDF

Robert Sullivan robert.sullivan at octoenergy.com
Thu Jun 8 06:37:51 EDT 2017


I'd like to use some entities such as ÷, × and ≈ in my
RML template that outputs to a PDF but I get an error:

rml2pdf.go(rml, outputFileName=buffer)
  File "rlextra-3.3.29/src/rlextra/rml2pdf/rml2pdf.py", line 6018, in go
pyRXPU.error: Declared encoding UTF-8 is incompatible with UTF-16 which was
used to read it

I've read in this previous message
that PDF may not allow UTF-8 so I'm a bit stuck as to what to do.

Many thanks,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20170608/cfc09662/attachment.html>

More information about the reportlab-users mailing list