Wrong encoding using Broadcast.UpdateTitle

Started by mferre_,

mferre_

Dear folks,

I'm using the method Broadcast.UpdateTitle(String, String) to update the song title of an Icecast stream. The icecast Object is declared with useBass=True.

Analizing the traffic with Wireshark i've noticed that the encoding is different between useBass=True and useBass=False. In particular with useBass=False is a UTF8, with useBass=False not. This leads me to some problems using special character like "èàò" etc...

useBass=True -> /admin/metadata?mode=updinfo&mount=%2Ftest&song=Phil%20Collins%20-%20%E8%20a%20%EC%20a%20%E8%20-%201984%0D%0A-> ISO-8859-1

useBass=False ->  /admin/metadata?mount=%2Ftest&mode=updinfo&password=hackme&song=Phil%20Collins%20-%20%C3%A8%20%C3%AC%20%C3%A8%20-%201984%0D%0A -> UTF8

Since i need useBass=True for other reasons, how can i use that method with an UTF8 encoding? With the other encoding the icecast server don't update titles with special character.

Thanks for help!
Bye

Ian @ un4seen

I suspect the issue there is that BASS_Encode_CastSetTitle (used by BASS.Net when useBass=True) is expecting the provided string to be in UTF-8 form while .Net is passing it an ANSI string. Please try setting ForceUTF8TitleUpdates=true on the ICEcast object and see if that helps.

radio42

Bass.Net (with UseBASS=True) is using the default BassENC.BASS_Encode_CastSetTitle method, which always uses an ANSI character string to update the title/url.
Except you set the StreamingServer.ForceUTF8TitleUpdates=True in which case UTF-8 is used.

If you set UseBASS=False, Bass.Net uses its own implementation, which is always UTF-8.

mferre_

Tried with ForceUTF8TitleUpdates=true, seems to work smoothly!

Thanks for the help.