|
From: | Dmitry Samersoff |
Subject: | Re: [gmediaserver-devel] question about character encoding in gmediaserver |
Date: | Thu, 31 Dec 2009 10:45:38 +0300 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090812) |
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 -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 ...
[Prev in Thread] | Current Thread | [Next in Thread] |