私は現在このサイトhttp://ostermiller.org/calc/encode.html
をデコードしています。その解読サイト上のURLのデコードを使用してhttp://h.mysite.com/007/YRM-CD-9
へNotepad ++でURLをデコードできますか?
http%3A%2F%2Fh.mysite.com%2F007%2FYRM-CD-9
。
これがメモ帳++で実行できるのかどうか疑問に思っていました。
私は現在このサイトhttp://ostermiller.org/calc/encode.html
をデコードしています。その解読サイト上のURLのデコードを使用してhttp://h.mysite.com/007/YRM-CD-9
へNotepad ++でURLをデコードできますか?
http%3A%2F%2Fh.mysite.com%2F007%2FYRM-CD-9
。
これがメモ帳++で実行できるのかどうか疑問に思っていました。
PiLHAのおかげです。
C:\Programs Files\Notepad++\plugins
のNotepad ++のZipからPluginフォルダにファイルを置きます。URLENDECODE.js
として保存し、C:\Program Files\Notepad++\plugins\jN\includes
に保存してください。コード:メモ帳で
var URLDecoderEncoder = Editor.addMenu('URL-Encoding/Decoding');
URLDecoderEncoder.addItem({
text: 'Encode',
cmd: function() {
var unencoded = Editor.currentView.text;
var encoded = encodeURIComponent(unencoded);
Editor.currentView.text = encoded;
}
});
URLDecoderEncoder.addItem({
text: 'Decode',
cmd: function() {
var encoded = Editor.currentView.text;
var unencoded = decodeURIComponent(encoded);
Editor.currentView.text = unencoded;
}
});
URLDecoderEncoder.addItem({
text: 'Decode multi-pass (7x)',
cmd: function() {
var encoded = Editor.currentView.text;
var unencoded_pass1 = decodeURIComponent(encoded);
var unencoded_pass2 = decodeURIComponent(unencoded_pass1);
var unencoded_pass3 = decodeURIComponent(unencoded_pass2);
var unencoded_pass4 = decodeURIComponent(unencoded_pass3);
var unencoded_pass5 = decodeURIComponent(unencoded_pass4);
var unencoded_pass6 = decodeURIComponent(unencoded_pass5);
var unencoded = decodeURIComponent(unencoded_pass6);
Editor.currentView.text = unencoded;
}
});
回避策[こちら](http://sourceforge.net/p/notepad-plus/discussion/331754/thread/5249d0f2#54f1) – PiLHA
ありがとう、私はそれをインストールする方法を読む必要があります。 – Mowgli
TextFXは 'Convert/Encode URI component'しか提供していません –