From 5fc1e8bc12dabad417f53b03ab0ebdcca123190a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 8 Aug 2012 14:21:13 +0200 Subject: [PATCH] Fix for an Issue #142 --- thirdparty/clientform/clientform.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thirdparty/clientform/clientform.py b/thirdparty/clientform/clientform.py index 80abc514a..8f9bb315b 100644 --- a/thirdparty/clientform/clientform.py +++ b/thirdparty/clientform/clientform.py @@ -241,6 +241,8 @@ def unescape_charref(data, encoding): name, base = data, 10 if name.startswith("x"): name, base= name[1:], 16 + elif not name.isdigit(): + base = 16 uc = unichr(int(name, base)) if encoding is None: return uc