Version: 1.4beta3 (using KDE KDE 3.5.2) Installed from: Mandriva RPMs OS: Linux I've wrote a small lyric script that will fectch lyrics from http://music.yahoo.com.cn (mainly Chinese songs), which works fine with 1.4beta2 and svn at 20060413. But with svn20060503, the script get garbage output for Chinese songs. I think there might be something wrong(change?) with amaroK itself when dealing with Unicode and international characters. Note, the script can fetch the lyric for songs in English tags perfectly. If you are interesting with this script, I would like to attach it.
Since SVN revision 533140, scripts need to output the lyrics in UTF8, instead of using the locale as before. This was necessary exactly to prevent these problems. On ruby, you can use ".unpack("C*").pack("U*")" to convert the string. There must be similar ways for other languages.
On Friday 05 May 2006 18:05, Funda Wang wrote: > I've wrote a small lyric script that will fectch lyrics from > http://music.yahoo.com.cn (mainly Chinese songs), which works fine with > 1.4beta2 and svn at 20060413. > > But with svn20060503, the script get garbage output for Chinese songs. I > think there might be something wrong(change?) with amaroK itself when > dealing with Unicode and international characters. We've changed the way lyrics scripts work: amaroK now expects all text to be UTF-8 encoded. So your script must recode to UTF-8, if the text is encoded in something else.
OK. Thanks for clearify. But how about the meta data (artist and title) transferred to script? Does it should be in UTF-8 also? Currently, script will get locale data from amaroK.
I've revised the title of this bug to reflect the actural problem here. The artist and song name transferrred to lyric plugin are in locale charset rather than utf-8 encoded, which will be a problem for Chinese users.
How is it going?
Still valid in amarok 1.4.3
Is this still valid for 1.4.5?
Yes. It is still valid in 1.4.5.
Do you think you could provide the script that generated the error?
And test it in Amarok 1.4.9.2 please.
Closing due to lack of feedback.