Add JIS encodings to message loading
authorCélestin Matte <gitlab@cmatte.me>
Tue, 11 Apr 2023 08:57:10 +0000 (10:57 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 11 Apr 2023 08:57:10 +0000 (10:57 +0200)
loader/lib/parser.py

index 8b9c87a0a01692fd83fce5761a3e0501b64ff06a..027ed53b7aad02ce71f38021b2074c147da38e8c 100644 (file)
@@ -137,6 +137,8 @@ class ArchivesParser(object):
             return 'big5'
         if lcharset == 'x-unicode-2-0-utf-7':
             return 'utf-7'
+        if lcharset == 'shift-jis' or lcharset == 'jis':
+            return 'shift_jisx0213'
         if lcharset == 'tscii':
             # No support for this charset :S Map it down to ascii
             # and throw away all the rest. sucks, but we have to