[brightcove] Encode object_str with utf-8
[youtube-dl] / youtube_dl / extractor / brightcove.py
index 83eec84d3cd446b75854accd8dd8c2c754ba4349..339d60ff0f52ed31edcb77aa1b2e1d4994266a91 100644 (file)
@@ -87,7 +87,7 @@ class BrightcoveIE(InfoExtractor):
         object_str = object_str.replace('<--', '<!--')
         object_str = fix_xml_ampersands(object_str)
 
-        object_doc = xml.etree.ElementTree.fromstring(object_str)
+        object_doc = xml.etree.ElementTree.fromstring(object_str.encode('utf-8'))
 
         fv_el = find_xpath_attr(object_doc, './param', 'name', 'flashVars')
         if fv_el is not None: