[reportlab-users] Error with the character ampersand

Robin Becker robin at reportlab.com
Wed Oct 25 04:45:55 EDT 2006


paulino1 at sapo.pt wrote:
> I have a cgi script that grab data from a database, send a table to the browser
> and generate a pdf with the same data, for printing.
> 
.......

ampersands are treated specially in XML. To put an ampersand in rour paragraphs 
you need to use the form

"..........&................"

There are a couple of other commonly needed entities including &lt; == "<"
&gt; == ">", &quot; etc etc

you can also use the &#163; form to produce special characters numerically.
-- 
Robin Becker


More information about the reportlab-users mailing list