nkf insert strange code using option -WwMQ
nkf makes reply that is different from ruby as follows. Could you please check this?
$ echo -n 一般社団法人情報通信技術委員会|nkf -WwMQ|tr = % %E4%B8%80%E8%88%AC%E7%A4%BE%E5%9B%A3%E6%B3%95%E4%BA%BA%E6%83%85%E5%A0%B1% %E9%80%9A%E4%BF%A1%E6%8A%80%E8%A1%93%E5%A7%94%E5%93%A1%E4%BC%9A
$ echo -n 一般社団法人情報通信技術委員会|ruby -r uri -ne 'print URI.escape $_' %E4%B8%80%E8%88%AC%E7%A4%BE%E5%9B%A3%E6%B3%95%E4%BA%BA%E6%83%85%E5%A0%B1%E9%80%9A%E4%BF%A1%E6%8A%80%E8%A1%93%E5%A7%94%E5%93%A1%E4%BC%9
Environment Ubuntu 14.04LTS (amd64) $ nkf -v Network Kanji Filter Version 2.1.3 (2013-11-22) Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa). Copyright (C) 1996-2013, The nkf Project.
nkf's mime_encode automatically inserts line feed, and in q-encode nkf escape the line feed with soft line. It is why they differ.
nkf makes reply that is different from ruby as follows. Could you please check this?
$ echo -n 一般社団法人情報通信技術委員会|nkf -WwMQ|tr = % %E4%B8%80%E8%88%AC%E7%A4%BE%E5%9B%A3%E6%B3%95%E4%BA%BA%E6%83%85%E5%A0%B1% %E9%80%9A%E4%BF%A1%E6%8A%80%E8%A1%93%E5%A7%94%E5%93%A1%E4%BC%9A
$ echo -n 一般社団法人情報通信技術委員会|ruby -r uri -ne 'print URI.escape $_' %E4%B8%80%E8%88%AC%E7%A4%BE%E5%9B%A3%E6%B3%95%E4%BA%BA%E6%83%85%E5%A0%B1%E9%80%9A%E4%BF%A1%E6%8A%80%E8%A1%93%E5%A7%94%E5%93%A1%E4%BC%9
Environment Ubuntu 14.04LTS (amd64) $ nkf -v Network Kanji Filter Version 2.1.3 (2013-11-22) Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa). Copyright (C) 1996-2013, The nkf Project.