diff options
author | Alex Morega <alex@grep.ro> | 2014-01-06 23:15:45 +0200 |
---|---|---|
committer | Alex Morega <alex@grep.ro> | 2014-01-06 23:15:45 +0200 |
commit | 2af2c176b09b0fd90b91e6678e2afaf1355f838b (patch) | |
tree | 2bf21e13e04b37ebb11b8f2abad7e3d8733e8190 | |
parent | 2eb475f835375c1b3b7fefcb7d8aad7047d7fda7 (diff) | |
download | babel-2af2c176b09b0fd90b91e6678e2afaf1355f838b.tar.gz |
change spelling of the encoding
Apparently jython doesn't understand "utf_8". Fixes #46.
-rw-r--r-- | babel/util.py | 2 |
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: |