Foros: 公開討議 (Thread #36051)

=?euc-jp?Q?= / =?shift_jis?Q?のデコード (2014-10-10 19:08 by しん #74572)

=?euc-jp?Q?= / =?shift_jis?Q?のデコードをサポートしているか
ご教授いただけませんでしょうか。
以下をデコードしようとしましたができませんでした。
できるのであればオプションの情報もいただけると助かります。

=?euc-jp?Q?=A4=A2=A4=A4=A4=A6=A4=A8=A4=AA=AA?=
=?shift_jis?Q?=82=A0=82=A2=82=A4=82=A6=82=A8?=

Responder al #74572×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: =?euc-jp?Q?= / =?shift_jis?Q?のデコード (2014-11-17 23:29 by kkato233 #74858)

[メッセージ #74572 への返信]
> =?euc-jp?Q?= / =?shift_jis?Q?のデコードをサポートしているか
> ご教授いただけませんでしょうか。

> できるのであればオプションの情報もいただけると助かります。
-mN
mime を有効にする(厳密にチェックしないモード)
で解釈できました。

ソースコードを確認したところ、厳密にチェックするモードでは
=?euc-jp?Q?
=?shift_jis?Q?
の形式を許可していませんでした。
-m オプションだけでは 厳密にチェックするモードとして動作するようです。

UTF8 は =?utf-8?Q? も =?utf-8?B? もサポートしているんですけどね・・。
数行 修正したら 対応できるようですけど・・

https://github.com/kkato233/nkf/commit/15bd98dbaeb3fa4d7c8623ffd12dece6313cf177

Responder al #74572

Responder al #74858×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar