From 6b4c9ec3d3b23c56d96dd40344da7610d5d692c0 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?C=C3=A9lestin=20Matte?= Date: Tue, 21 Mar 2023 16:25:43 +0100 Subject: [PATCH] Message loader: add JIS encodings --- loader/lib/parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loader/lib/parser.py b/loader/lib/parser.py index 8b9c87a..8ed843f 100644 --- a/loader/lib/parser.py +++ b/loader/lib/parser.py @@ -141,6 +141,8 @@ class ArchivesParser(object): # No support for this charset :S Map it down to ascii # and throw away all the rest. sucks, but we have to return 'us-ascii' + if lcharset == 'shift-jis' or lcharset == 'jis': + return 'shift_jisx0213' return charset def get_payload_as_unicode(self, msg): -- 2.39.2