Error using encoding="utf-8" to output RML to PDF

Robert Sullivan <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <CAH4RokLr0Qx0HpBLR_hBASe7HeqPFfcEZSipBGY4PCwCuuqrZQ@mail.gmail.com>
Hello,

I'd like to use some entities such as &divide;, &times; and &asymp; 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
https://pairlist2.pair.net/pipermail/reportlab-users/2017-March/011607.html
that PDF may not allow UTF-8 so I'm a bit stuck as to what to do.

Many thanks,

Robert
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.