View Single Post
Old 04-20-2023, 09:58 PM   #1052
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
book%20%5B30%5D decodes as: book [30]

Quote:
Originally Posted by BetterRed View Post
I'm not sure URL encoding ever worked in web links (http and https), very few of the web urls I have in LT columns need any encoding, just happened to stumble on one today.

BR

Your test data that I used:


#~ url = 'file:///X:%5CMyPluginsPy3%5C_ris_import_dir%5Cabstract.txt '
#~ url = "file:///D:/Calibre/Libraries/Default/!Attachments/book%20%5B30%5D/"
#~ url = "file:///D:/Calibre/Libraries/Default/!Attachments/book%20(30)"
#~ url = "file:///D:/Calibre/Libraries/Default/!Attachments/book%2030/"


example: book%20%5B30%5D decodes as: book [30]


That still works for files. I haven't touched that code since the first test version that had it. I will confirm the same is true for non-files.

NV handles these (the paste messed with the column/header alignment):


Code:
       #~ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        #~ newline ........................    space        "         %         -           .           <         >         \             ^       _             `           {           |           }            ~
        #~ %0A or %0D or %0D%0A     %20     %22     %25     %2D     %2E     %3C     %3E     %5C     %5E     %5F     %60     %7B     %7C     %7D     %7E
        #~ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        #~ !             #           $           &         '         (                )       *         +           ,           /             :           ;         =           ?         @        [                ]
        #~ %21     %23     %24     %26     %27     %28     %29     %2A     %2B     %2C     %2F     %3A     %3B     %3D     %3F     %40     %5B     %5D
        #~ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DaltonST
DaltonST is offline   Reply With Quote