[Icecast] Metadata in non UTF-8 encoding support (patch)

Andrew N. Below
Mon, 23 Oct 2006 02:20:36 -0000

Hi there.

http://defan.zenon.net/freebsd/patch-icecast2-encoding

This patch allows icecast to encode metadata from
specified charset to UTF-8 for stats output and
using different charset for log output.

Variables to add to config (for example):

<icecast>
  <metadataenc>CP1251</metadataenc>
  ...
  <logging>
     ...
     <logenc>KOI8-R</logenc>
     ...
  </logging>
</icecast>

libiconv is used to do conversion task.
It works for me on freebsd 6-stable and icecast 2.3.1.

--
Andrew N. Below
Zenon N.S.P.