File: http_text_xml_charset_overrides_encoding_2.xml

package info (click to toggle)
feedparser 6.0.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,540 kB
  • sloc: xml: 11,459; python: 4,575; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 521 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version='1.0' encoding='iso-8859-1'?>
<!--
SkipUnless:   __import__('codecs').lookup('windows-1252')
Header:       Content-type: text/xml; charset=windows-1252
Description:  text/xml + charset overrides encoding (this one is harder than the others)
Expect:       not bozo and entries[0]['description'] == 'This is a \xa3\u201ctest.\u201d'
-->

<rss version="2.0">
<channel>
<item>
<title>Foo</title>
<link>http://purl.org/rss/2.0/?item</link>
<description>This is a test.</description>
</item>
</channel>
</rss>