**Describe the bug**
Using a Python 3 script to make calls to an API and return an "annotate" string 
for Liquidsoap to process. If the string contains any non-ASCII characters, it 
will silently fail and choose the default (""). If all characters are "normal", 
the line is accepted with no issues.

Here's an example of the log output:

> [lang:3] "annotate:req_id=\"5\",type=\"S\",artist=\"Masato Koda, Satoshi Ise, 
> Tetsuya Shibata\",title=\"Please Kill Me\",game=\"Devil May Cry 
> 2\":/xxxxxxxxxx/Devil May Cry 2/Disc 2/12 Masato Koda, Tetsuya Shibata & 
> Satoshi Ise - Please Kill Me.flac"
[decoder:3] Method "FFMPEG" accepted "/xxxxxxxxxx/Devil May Cry 2/Disc 2/12 
Masato Koda, Tetsuya Shibata & Satoshi Ise - Please Kill Me.flac".
[main:3] Prepared "/xxxxxxxxxx/Devil May Cry 2/Disc 2/12 Masato Koda, Tetsuya 
Shibata & Satoshi Ise - Please Kill Me.flac" (RID 1).
[fallback_7369:3] Switch to main with transition.
[smart_cross_7377:3] Analysis: -27.445053dB / -infdB (5.00s / 5.00s)
[mycross:3] Transition: crossed, fade-in, fade-out.
[lang:3] "annotate:req_id=\"6\",type=\"S\",artist=\"Keiki 
Kobayashi\",title=\"The Journey Home\",game=\"Ace Combat 5: The Unsung 
War\":/xxxxxxxxxx/Ace Combat 5 - The Unsung War/Disc 3/14 Keiki Kobayashi - The 
Journey Home.flac"
[decoder:3] Method "FFMPEG" accepted "/xxxxxxxxxx/Ace Combat 5 - The Unsung 
War/Disc 3/14 Keiki Kobayashi - The Journey Home.flac".                         
                                                                                
 
[main:3] Finished with "/xxxxxxxxxx/Devil May Cry 2/Disc 2/12 Masato Koda, 
Tetsuya Shibata & Satoshi Ise - Please Kill Me.flac".                           
                                                                                
  
[main:3] Prepared "/xxxxxxxxxx/Ace Combat 5 - The Unsung War/Disc 3/14 Keiki 
Kobayashi - The Journey Home.flac" (RID 2).                                     
                                                                                
[smart_cross_7377:3] Analysis: -18.808448dB / -34.477153dB (4.96s / 4.96s)
[mycross:3] Transition: crossed, fade-in, fade-out.
[lang:3] ""
[lang:3] ""
[lang:3] ""
[lang:3] ""
[lang:3] ""
[lang:3] ""
[lang:3] ""
[lang:3] ""
[lang:3] ""
[lang:3] ""


**To Reproduce**
Put something like this as your annotate line:

> annotate:req_id="7",type="S",artist="Olivier Derivière",title="Our 
> Parents",game="Remember Me":/xxxxxxxxxx/Remember Me Original Soundtrack/10 
> Olivier Derivière - Our Parents.flac

Note the "è" character.

**Expected behavior**
When I used a much older version of Liquidsoap (I believe it was version 
1.1.1), I had no issues reading non-ASCII characters from the annotate line.

**Version details**
 - OS: Ubuntu 18.04.1 LTS
 - Version: 1.3.4

**Install method**
opam 4.05

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/697
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to