Romain,

Using your notation, is there no way to set B (target encoding) from
Liquidsoap? Do we need to actually modify the xml file to set the target
encoding? The reason I am so confused is because the icecast documentation
page implies that this can be changed remotely.


For non-Ogg streams like MP3, the metadata that is inserted into the stream
> often has no defined character set. We have traditionally assumed UTF8 as
> it allows for multiple language sets on the web pages and stream directory,
> however many source clients for MP3 type streams have assumed Latin1 (ISO
> 8859-1) or leave it to whatever character set is in use on the source
> client system.
> This character mismatch has been known to cause a problem as the stats
> engine and stream directory servers want UTF8 so now we assume Latin1 for
> non-Ogg streams (to handle the common case) but you can specify an
> alternative character set with this option.
> *The source clients can also specify a charset= parameter to the metadata
> update URL if they so wish.*






2011/11/16 Romain Beauxis <to...@rastageeks.org>

> 2011/11/16 David Baelde <david.bae...@ens-lyon.org>:
> > 2011/11/16 Romain Beauxis <to...@rastageeks.org>:
> >> When you pass a charset=UTF8 parameter to icecast, it tries to convert
> >> the given string to its target encoding. Thus for mp3 mountpoints you
> >> get a conversion UTF8 -> latin1, which cannot be done with Cyrillic
> >> characters, hence the resulting HTML special codes for lack of better
> >> alternatives..
> >
> > I believe that the first sentence should be dropped. Icecast receives
> > a string, and converts it (if needed) to its internal encoding. By
> > default it is latin1, which is problematic, thus the UTF8 setting.
> >
> > Apparently, this setting cannot be peformed by the client, the
> > protocol doesn't allow it. On the liquidsoap side, the charset option
> > only tells liquidsoap how to encode the data, but this information is
> > not sent directly to icecast. Am I right, Romain?
>
> Tu put it simply, you have:
> A - source string encoding
> B - target encoding
>
> charset=UTF8 in metadata updates sent from sources to icecast is for
> A, charset parameter in icecast.xml is for B.
>
> A and B are latin1 by default for mp3 mountpoints (historical) and utf8
> for ogg.
>
> When a string is received, icecast performs a conversion A -> B if needed.
>
> Good?
>
> Romain
>
> Romain
>



-- 
Martin Konecny
Software Developer, Sourcefabric
martin.kone...@sourcefabric.org

720 Bathurst St. Suite 203
M5S 2R4, Toronto, ON, Canada
+1 (416) 892-8420 (Cell)
Skype: martin.konecny15

http://www.sourcefabric.org
http://www.twitter.com/Sourcefabric
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to