Re: Add pre-scan task?

bpa <bpa.ahzvnz-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Mon, 28 Mar 2022 11:29:55 +0000
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
Not sure if this is relevant. Be careful with uri_unescape with
ambiguous encoded UTF8 characters.
For example.

Code:
--------------------
    
  print uri_unescape("%C3%B3");
  
--------------------


Output : ó

But what you may have expected/wanted was the UTF8 char

Output : ó 

The following will force a UTF8 output.

Code:
--------------------
    
  Encode::decode('utf8', uri_unescape("%C3%B3"));
  
--------------------


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=116160

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