我正在使用此站點http://ostermiller.org/calc/encode.html
來解碼代碼。我們可以使用Notepad ++解碼URL嗎?
http%3A%2F%2Fh.mysite.com%2F007%2FYRM-CD-9
到http://h.mysite.com/007/YRM-CD-9
在該解碼站點上使用URL解碼。
我想知道這是否可以通過Notepad ++來完成。
我正在使用此站點http://ostermiller.org/calc/encode.html
來解碼代碼。我們可以使用Notepad ++解碼URL嗎?
http%3A%2F%2Fh.mysite.com%2F007%2FYRM-CD-9
到http://h.mysite.com/007/YRM-CD-9
在該解碼站點上使用URL解碼。
我想知道這是否可以通過Notepad ++來完成。
感謝PiLHA。
C:\Programs Files\Notepad++\plugins
。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只提供'轉換/編碼URI組件' –