projects
/
pgarchives.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
069c138
)
Add JIS encodings to message loading
author
Célestin Matte
<gitlab@cmatte.me>
Tue, 11 Apr 2023 08:57:10 +0000
(10:57 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Tue, 11 Apr 2023 08:57:10 +0000
(10:57 +0200)
loader/lib/parser.py
patch
|
blob
|
blame
|
history
diff --git
a/loader/lib/parser.py
b/loader/lib/parser.py
index 8b9c87a0a01692fd83fce5761a3e0501b64ff06a..027ed53b7aad02ce71f38021b2074c147da38e8c 100644
(file)
--- a/
loader/lib/parser.py
+++ b/
loader/lib/parser.py
@@
-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