]> git.parisson.com Git - pdf.js.git/commit
Decode XML metadata as UTF-8
authorNils Maier <maierman@web.de>
Sun, 27 May 2012 20:49:28 +0000 (22:49 +0200)
committerNils Maier <maierman@web.de>
Sun, 27 May 2012 20:56:49 +0000 (22:56 +0200)
commit40b9be137f276ab54598aad8726c982ed6d58075
tree61ffc6accb3df4c661def791ba6367065d5d969b
parente9632120c4af09a342ae118bcafccec347d4088a
Decode XML metadata as UTF-8

XML uses UTF-8 by default, which needs to be decoded to a Javascript
String prior to feeding it to the DOMParser.
In an ideal world, the XML would actually be analyzed and the specified
charset would be used, however that does not seem feasible unless JS
engines get iconv bindings.

Fixes GH-1692
src/obj.js
src/util.js