[reportlab-users] Bogus Character

Tiago Becker tiagobecker at gmail.com
Tue Sep 23 16:44:10 EDT 2008


Worked like a charm!

Thanks a lot!!! :D

On Tue, Sep 23, 2008 at 4:55 PM, Jessup, David <DJESSUP at usnews.com> wrote:


> Ack!

>

> That should be: from xml.sax import saxutils

> ^

>

> ________________________________

>

> From: reportlab-users-bounces at reportlab.com

> [mailto:reportlab-users-bounces at reportlab.com] On Behalf Of Jessup,

> David

> Sent: Tuesday, September 23, 2008 3:45 PM

> To: Support list for users of Reportlab software

> Subject: Re: [reportlab-users] Bogus Character

>

>

> Use:

>

> from xml.sal import saxutils

> ...

> my_paragraph = Paragraph(saxutils.escape(my_text), style)

>

> The escape function will encode the special characters in your text (&

> -> &amp;, etc.) so that Paragraph can understand it.

>

> ________________________________

>

> From: reportlab-users-bounces at reportlab.com

> [mailto:reportlab-users-bounces at reportlab.com] On Behalf Of Tiago Becker

> Sent: Tuesday, September 23, 2008 3:21 PM

> To: reportlab-users at reportlab.com

> Subject: [reportlab-users] Bogus Character

>

>

> Hello all,

> I've an error if a Paragraph contains some characters such as "&".

>

> Is there a way to fix that other than replacing the character?

>

> Thanks!

>

> Tiago Becker

>

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20080923/480ca2ba/attachment.html>


More information about the reportlab-users mailing list