Re: URL safe characters?

gordonb3 <gordonb3.af6ibb-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Tue, 1 Feb 2022 17:43:39 +0000
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
cpd73 wrote: 
> Please, this is silly. Look at the LMS supplied MusicMagic DSTM mixer -
> this calls fileURLFromPath for the returned music paths. So, that is
> converting a path into a file URL. The usage of file URLs is *correct*
> here. My URLs from the Python code pecent encode more than LMS does, and
> that was *all* I was querying.
> 
> *All* I originally asked was what the URL safe characters were. That has
> been answered.

So how does a wrong answer to a wrong question help you?

The characters that your python app encodes are *not* URL safe. They may
however be considered safe in other URI variants and for some obscure
reason the LMS devs chose to not obey the strict HTML rules for internal
used file references but write their own transcode module. To match that
result you must do the same and the sensible thing is to use the already
existing module like you are doing now. This also means that it is
pointless to let your python app generate URI encoded strings in the
HTML body as all this does is require you to decode them before being
able to use the correct encoder.


------------------------------------------------------------------------
gordonb3's Profile: http://forums.slimdevices.com/member.php?userid=71050
View this thread: http://forums.slimdevices.com/showthread.php?t=115875