summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Morega <alex@grep.ro>2014-01-06 23:15:45 +0200
committerAlex Morega <alex@grep.ro>2014-01-06 23:15:45 +0200
commit2af2c176b09b0fd90b91e6678e2afaf1355f838b (patch)
tree2bf21e13e04b37ebb11b8f2abad7e3d8733e8190
parent2eb475f835375c1b3b7fefcb7d8aad7047d7fda7 (diff)
downloadbabel-2af2c176b09b0fd90b91e6678e2afaf1355f838b.tar.gz
change spelling of the encoding
Apparently jython doesn't understand "utf_8". Fixes #46.
-rw-r--r--babel/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/babel/util.py b/babel/util.py
index f46ee2b..a65fce3 100644
--- a/babel/util.py
+++ b/babel/util.py
@@ -80,7 +80,7 @@ def parse_encoding(fp):
raise SyntaxError(
"python refuses to compile code with both a UTF8 "
"byte-order-mark and a magic encoding comment")
- return 'utf_8'
+ return 'utf-8'
elif m:
return m.group(1).decode('latin-1')
else: