Hello. There are files that contain many URLs and other text. It is necessary to decode in them all links of the form http://kristinita.ru/404_files/%D0%9D%D0%B0_%D1%81%D0%B2%D0%B0%D0%B4%D1%8C%D0%B1%D0%B5_%D0%B7%D0%BD%D0%B0%D0%BA%D0%BE%D0%BC%D1%8B%D1%85.jpg at http://kristinita.ru/404_files/На_свадьбе_знакомых.jpg http://kristinita.ru/404_files/%D0%9D%D0%B0_%D1%81%D0%B2%D0%B0%D0%B4%D1%8C%D0%B1%D0%B5_%D0%B7%D0%BD%D0%B0%D0%BA%D0%BE%D0%BC%D1%8B%D1%85.jpg http://kristinita.ru/404_files/На_свадьбе_знакомых.jpg How to do this quickly and correctly, so as not to accidentally remove the excess? Thank.

    1 answer 1

    Wrong decision

    Install the StringEncode plugin and open the file where you want to decode the URL, run EditStringEncodeURL Decode . In this case, the + symbol will be replaced with a space in the whole text, including the already decoded addresses.

    Removing a plus when decoding a URL in StringEncode

    The developer is not going to fix this bug. He replied “ this is very melodramatic ” to my remark “seriously to much harm”. Fortunately, I use the plugin Local History : rolled back to the old versions of the files from which the plugin has removed the pluses.

    For the same reason, it is not recommended to use some online decoders, for example, those located on the MeyerWeb and FreeFormatter sites.

    The author of the plugin advised using the regular expression https?://\S+ when working with the StringEncode plugin:

    Decoding only URLs via StringEncode

    In spite of the fact that the template can find addresses like http://dic.academic.ru/dic.nsf/enc_philosophy/902/%D0%9F%D0%90%D0%A0%D0%90%D0%94%D0%98%D0%93%D0%9C%D0%90"><font , decoding is correct. However, if there are already pluses in the URL, they will be deleted, why this option is not satisfactory.

    Correct solution

    Plugin URLEncode . URL decoding shortcuts : Ctrl + U , Ctrl + D. It seems that nothing extra is demolished.

    URLEncode operation example

    Alternative solution

    Universal, independent of the text editor - online service http://www.urldecoder.org . Probably, if you check and test, you can also find its other correctly functioning analogues.