Could you try specifying the input encoding for string.recode? i.e. use something like v = string.recode(in_enc="CP-1252", v)
Cheers, Samuel On Sat, Aug 8, 2015 at 1:09 PM, Serg Makles <[email protected]> wrote: > > Is it a bug? Does camomile in Liquidsoap work? I tested the solution and > different code several times, but nothing works. Here is all my data > The .liq file: > http://pastebin.com/5Q0nwJ9H > The .log file: > http://pastebin.com/rjDkGjuZ > > An example of my mp3 file (which metadata contains non-latin symbols in > cp1252 encoding) > https://www.dropbox.com/s/jzgjyg7dbl3x7f3/recode_test.mp3 > Non-latin symbols were not converted: > http://i.imgur.com/XGpQS2M.png > > Help, please > >> 07.08.2015, 22:00:52 пользователь Samuel Mimram ([email protected]) >> написал: >> >> Hi, >> >> You should be able to do something like this: >> >> # Main source >> s = playlist(...) >> >> # Function to recode metadata >> def recode_meta(m) = >> def f(tv) = >> t = fst(tv) >> v = snd(tv) >> t = string.recode(t) >> v = string.recode(v) >> (t,v) >> end >> list.map(f,m) >> end >> >> # Recode metadata >> s = map_metadata(recode_meta,s) >> >> # Play the source >> output.icecast(s) >> >> Cheers, >> >> Samuel >> >> On Tue, Jul 21, 2015 at 4:17 PM, Serg Makles <[email protected]> wrote: >> > >> > Help, please! I see there is an opportunity to convert an encoding of >> > the metadata (camomile). I have some files in the playlist that have >> > non-lating symbols in its tags, and it is not in UTF-8 encoding. What can I >> > add to the .liq file to make possilbe convert its tags before sending >> > metadata to icecast? I dont use any metadata customizing now. Is it >> > possible >> > to convert the metadata, which is sent from DJ's software? >> > THANK you very much! >> > >> > Serg Makles. >> > >> > ------------------------------------------------------------------------------ >> > Don't Limit Your Business. Reach for the Cloud. >> > GigeNET's Cloud Solutions provide you with the tools and support that >> > you need to offload your IT needs and focus on growing your business. >> > Configured For All Businesses. Start Your Cloud Today. >> > https://www.gigenetcloud.com/ >> > _______________________________________________ >> > Savonet-users mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/savonet-users >> > ------------------------------------------------------------------------------ _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
