Code

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#9291 closed (fixed)

SyndicationFeed.writeString(encoding) documentation uses broken encoding example

Reported by: wiremine@… Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords: feed
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

Description

The example for the SyndicationFeed.writeString() method on http://docs.djangoproject.com/en/dev/ref/contrib/syndication/ suggest an encoding 'utf8'

However, Internet Explorer doesn't like utf8, and throws an error. It does, however, use utf-8 (with the dash) without problems.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [9133]) Fixed #9291 -- Tweaked a piece of example code slightly to set a good example
for others (now uses an encoding that is guaranteed to work for XML consumers).

comment:2 Changed 6 years ago by mtredinnick

(In [9137]) [1.0.X] Fixed #9291 -- Tweaked a piece of example code slightly to set a good
example for others (now uses an encoding that is guaranteed to work for XML
consumers).

Backport r9133 from trunk.

comment:3 Changed 5 years ago by anonymous

  • milestone post-1.0 deleted

Milestone post-1.0 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.