#24985: Rss201rev2Feed invalid characters in character data for RSS
-------------------------------------+-------------------------------------
     Reporter:  michaelgwood         |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  contrib.syndication  |                  Version:  1.7
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by michaelgwood):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> I have some data which comes from log files that I'd like to put into a
> RSS feed, unfortunately due to the nature of this data it sometimes
> contains control characters  e.g. \0001 \0003 , this causes it to fail
> RSS feed reader validation due to these characters (although valid utf-8)
> are not allowed [1].
>
> I'm not sure if this is something that should be fixed in this module,
> perhaps in sax/saxutils or in somewhere like django.utils.encoding
> force_text ?
>
> At the moment I'm working around this issue with a regex which replaces
> this range of chars.
>
> [1] http://www.w3.org/TR/REC-xml/#charsets

New description:

 I have some data which comes from log files that I'd like to put into a
 RSS feed, unfortunately due to the nature of this data it sometimes
 contains control characters  e.g. \0001 \0003 , this causes it to fail RSS
 feed reader validation due to these characters (although valid utf-8) are
 not allowed (1).

 I'm not sure if this is something that should be fixed in this module,
 perhaps in sax/saxutils or in somewhere like django.utils.encoding
 force_text ?

 At the moment I'm working around this issue with a regex which replaces
 this range of chars.

 (1) http://www.w3.org/TR/REC-xml/#charsets

--

--
Ticket URL: <https://code.djangoproject.com/ticket/24985#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.9290efd0e39ec88527074e3766ab17e8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to