Actually, with "CP1252" (without the dash), it does some recoding:

$ liquidsoap 'print(string.recode(in_enc="CP1252", "�������"))'
�������

Not sure this is the right answer, but iconv gives the same.

On Sat, Aug 8, 2015 at 3:14 PM, Serg Makles <[email protected]> wrote:
>
> No, I don't get the right answer. The symbols were not changed
>
>
>> Hum. Could you try even more manually? Something like:
>>
>> $ liquidsoap -v --debug 'print(string.recode(in_enc="ISO-8859-1",
>> "h�h�"))'
>> h�h�
>>
>> Do you get the right answer? (above it is not what I expected, so
>> camomile could be the culprit here...)
>>
>> Cheers,
>>
>> Samuel
>>
>> On Sat, Aug 8, 2015 at 2:03 PM, Serg Makles <[email protected]> wrote:
>> >
>> > Thank you very much for the answer!
>> > Specifying the input encoding doesn't help. It seems there is no
>> > recoding.
>> > It shows only UTF-8 metadata correctly
>> >
>> >> 08.08.2015, 14:42:32 пользователь Samuel Mimram ([email protected])
>> >> написал:
>> >>
>> >> 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

Reply via email to