Closed (fixed)
Project:
Audio
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2006 at 16:47 UTC
Updated:
15 Aug 2007 at 01:19 UTC
I tried to upload a mp3 with Korean characters.
It didn't import Korean characters properly.
So, I tried to edit them manually from the edit page but they showed as '???' after I submitted.
Is this a problem with audio module or my settings?
I can use Koreans in other modules.
Thanks!
Comments
Comment #1
drewish commentedyongrokc, since the version drop down is broken i have to ask, what version of the module are your using CVS/HEAD or 4.6? if you're using HEAD/CVS it should work, on 4.6 i can't say for certain.
Comment #2
yongrokc commentedI'm using CVS/HEAD. The database, tables, and columns are using 'utf8_general_ci'.
Comment #3
drewish commentedhumm, two things:
* would you post some sample text that i could play around with?
* if you have one, would you post an mp3 with korean characters in the ID3v2 tags for testing?
Comment #4
drewish commentedOh, make sure you've got the latest version of the HEAD audio.module and getID3 installed. Some UTF bugs were fixed with this issue: http://drupal.org/node/56083
Comment #5
yongrokc commentedDo you want me to put some Korean text here?
테스트
I attached a MP3 file with Korean characters but I'm not sure if they're in ID3v2 tags.
How can I find out?
I ripped it from CD using Windows Media Player.
I just updated my source to thelatest CVS HEAD but no luck.
If I edit the Artist and Title manually, they show up properly on the header but as ?' in the metadata box.
Comment #6
drewish commentedhumm, well if you typed in some korean character then they ended up as ???s so it might be a general Drupal problem. do they work in the rest of your site?
i'll look at that mp3...
Comment #7
yongrokc commentedYes, Korean characters work on rest of the site/modules.
If I type in Korean characters for the Artist and Title, the node title shows the characters correctly but they're entered into the audio_metadata table as '???'...
Comment #8
drewish commentedsee http://drupal.org/node/68299
Comment #9
firas commentedI'm having the same problems with Arabic mp3 files. The id3 tags are imported but they are garbled. I reenter them manually. They all show up fine on the preview, but after submitting the file the Artist and Title are garbled again. However the node's title is displayed correctly.
I've tested this with both the 4.7.0 and the cvs versions with the same results.
In addition to that if I click on download audio file, the file is downloaded and is the right size but can't be played in windows media player any more(C00D1199: Cannot play the file). However it will play in Media Player Classic. I checked the downloaded file and the id3 tags have been stripped, so maybe something else was changed too after being uploaded. This happens with all audio files i've uploaded (english and arabic).
Attached is a sample Arabic audio file.
Thank you.
Comment #10
yngens commentedsame problem with cyrillic. only i have installed 4.7, but i don't think in cvs will be differently.
Comment #11
yngens commentedI have tried both 4.7 and cvs versions of today. Everything works fine except a problem with ?????? characters in title instead, in my case, cyrillic letters. Although I am a total drewbie I digged in audio.module and found out that if a line of 1409
$getID3->encoding_id3v1 = 'ISO-8859-1'
to change with
$getID3->encoding_id3v1 = 'CP1251'
it gives an error:
PHP does not have iconv() support - cannot convert from CP-1251 to UTF-8
I was patient and compiled installed iconv and compiled php with it. my phpinfo() shows that I have successfully insatlled it. However, audio module kept giving error message. Then I tried to change different things that might have relation with iconv(), namely after changing in php.ini 'safe mode' to 'On' audio.module finally could to transfer and show cyrillic letters, though error message about absense of iconv() persisted.
And I would leave it this way, giving me error message but actually being able to correctly display cyrillic titles in id3, but unfortunately my gallery does not work with safe mode put to On.
So I am posting all these here just to give an idea to more professional users where to dig on to get internationl characters dispaled correctly. It is, in my believe, in line 1409: $getID3->encoding_id3v1 = 'ISO-8859-1'
Why ISO-8859-1?
Comment #12
drewish commentedno fix or it but just wanted to let you know that ID3v1 only supports the ISO-8859-1 encoding. ID3v2 supports UTF-8 which should have the correct characters.
Comment #13
maherg commentedI also got the same errors with the arabic language. If ID3v2 supports UTF8 , how can we force the usage of it ?
Comment #14
maherg commentedThe metadata (artist, title..etc.) gets picked up correctly by media player classic.
I wonder why does it not get rendered correctly by the audio module
Comment #15
maherg commentedokay, I opened phpmyadmin to take a look at what's in the tables and found that they were stored as garbled chars. I corrected them manually and then reloaded the page and it worked fine.
I guess it's in storing the metadata in the DB.
Comment #16
drewish commentedi think the problem is when it's reading the id3v1 tags, those don't support UTF-8.
Comment #17
drewish commentedokay, i finally spent some time trying to track this down. my guess at this point is that the id3v1 tags are encoded in your local codepage. i'd like to add a dropdown so the admin can select the code page but the problem is that getID3's tests that iconv work are broken.
Comment #18
yngens commenteddoes this mean, the module will be fully functional soon? will the solution appliaed to the module or the patch will be given?
Comment #19
drewish commentedsnegny, i'm not promising anything, but i've got some ideas that i'll be working on. any fixes will probably wait on an update to the getid3 library.
Comment #20
yngens commentedthank you. looking forward.
Comment #21
OnlyBlue commentedI use Audio module 4.7 and getID3 package 1.7.7. I get the same error while using chinese.
And I remember another module has the same problem.
Looking forward the fix.
Thanks!
Comment #22
mitke commentedI also have this problem with hebrew tags.
Is this issue going to be solved anytime soon?
Is there any workaround?
Comment #23
drewish commentedi think this patch fixed this: http://drupal.org/node/156476
Comment #24
(not verified) commented