gmediaserver-devel
[Top][All Lists]
Advanced

[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: Sun, 3 Jan 2010 22:31:42 -0800

On Wed, Dec 30, 2009 at 11:45 PM, Dmitry Samersoff <address@hidden> wrote:
> Han,
>
> Han wrote:
>>
>> 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?
>
> Typical set contains dozen of files with different encodings - i.e. I have
> files with 2 kind of Russian encoding, Japanese ones, UTF-8 ones and ISO
> ones on my media server. So this option doesn't help.
>
> I think the best way is to run some program that converts all tags to UTF-8

That's true. Indeed there could be multiple different encodings in
files and cannot pick any one of the encodings.

On the other hand, today gmediaserver automatically treats some such
encodings as  ISO8859-1 and converts to Unicode that generates
incorrect results.  How about adding an option in gmediaserver for not
converting such strings to Unicode? so that the upper applications can
process the raw strings and convert them properly based on needs.

Thanks.
Han

>
> -Dmitry
>
>
>>
>> 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 ...
>>>
>>>
>
>
> --
> Dmitry Samersoff
> address@hidden, http://devnull.samersoff.net
> * There will come soft rains ...
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]