While the script generally seems to work, one issue remains  (as
discussed in PM).
There are two encoding passes
- the first doesn't encode characters it should (according to the
'specs' (https://tools.ietf.org/html/rfc3986#section-2.2))
- the second (which is pointless to begin with) also doesn't encode
characters it should (but different ones)

currently, the script has this:

Code:
--------------------
    
  safe_chars_firstenc = ':/[]@!$&()*+,='
  safe_chars_secondenc = '()!'
  
--------------------

i.e.  characters in safe_chars_firstenc will not be encoded by the first
pass,  characters in safe_chars_secondenc will not be encoded by the
second pass.
Since this is getting tedious, I'll leave it to you to find out if there
are any changes necessary to get exactly the output TrackStat expects
(simply add/remove characters from these two variables).
You can get the script from 'here'
(https://www.nexus0.net/pub/sw/misc/ts_cp1252-to-utf8.py)
Run 

Code:
--------------------
    
  ts_cp1252-to-utf8.py --help 
  
--------------------

to see it's options



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112495

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to