[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gmediaserver-devel] question about character encoding in gmediaser
From: |
Han |
Subject: |
Re: [gmediaserver-devel] question about character encoding in gmediaserver |
Date: |
Wed, 30 Dec 2009 22:35:20 -0800 |
Thanks Dmitry for your quick response.
Using id3lib, in the case of ID3Field_GetASCII, I tried to call iconv
use "GBK" as "from_encoding" instead of ISO8859-1. And it worked!
based on this, I was thinking, how about add an option to gmediaserver
so that users can change the from_encoding for ID3v1 tag? will that be
useful?
thanks
Han
On Wed, Dec 30, 2009 at 1:22 PM, Dmitry Samersoff <address@hidden> wrote:
> Han,
>
> Try to disable iconv during compilation of gmediaserver and make sure your
> tag library do or don't do conversion.
>
> -Dmitry
>
> Han wrote:
>>
>> Hi,
>>
>> I am writing a program to use UPnP to connect to gmediaserver and to
>> browse MP3 songs.
>>
>> One problem I have is that, it seems that for MP3 songs with Chinese
>> song names (MP3 tag) encoded in GB2312 (2 bytes per Chinese
>> character), the original song name string is converted into 4 bytes
>> per character in the browse result. The new string seems not valid
>> GB2312, nor valid UTF-8.
>>
>> I am wondering if gmediaserver do any such encoding conversion for
>> song names, or is it libupnp doing such conversion?
>>
>> thanks.
>> Han
>>
>>
>> _______________________________________________
>> GMediaServer-devel mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/gmediaserver-devel
>
>
> --
> Dmitry Samersoff
> address@hidden, http://devnull.samersoff.net
> * There will come soft rains ...
>
>