45 |
except (ValueError, Exception): |
except (ValueError, Exception): |
46 |
enc = "utf-8" |
enc = "utf-8" |
47 |
|
|
48 |
|
if enc is None or (len(enc) < 1): |
49 |
|
enc = "utf-8" |
50 |
|
|
51 |
parser.feed(content) |
parser.feed(content) |
52 |
parsed = straw.ParsedSummary() |
parsed = straw.ParsedSummary() |
53 |
|
|
54 |
|
|
55 |
parsed.title, enc = unicode_field( |
parsed.title, enc = unicode_field( |
56 |
parser.channel, "title", "", enc = enc) |
parser.channel, "title", "", enc = enc) |
57 |
parsed.description, enc = unicode_field( |
parsed.description, enc = unicode_field( |