utf8_unicode and accents

Reis
Reis
Offline
0
Hi there

I have my db set to uft8_unicode, I can see the file names correctly spelled on my songs directory but when I create a album and look sgj_muscol_songs the accents like "música", "Feijão" are not being translated correctly which than I can't play the song.

I have to go to the db and fix the string.

Have anyone seeing this before and fixed ? please tell me how.

thanks
Responses (12)
  • Accepted Answer

    Reis
    Reis
    Offline
    Tuesday, December 21 2010, 11:25 PM - #Permalink
    0
    Just want to add that I am using the scan a folder functionality
    The reply is currently minimized Show
  • Accepted Answer

    Reis
    Reis
    Offline
    Thursday, December 23 2010, 12:25 PM - #Permalink
    0
    Hi There,

    any comments or ideas on this issue?

    thanks
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 23 2010, 12:46 PM - #Permalink
    0
    are you talking aobut accents on FILENAMES? filenames should be WITHOUT accents... songs name is OK with accents, but filename must be A-Z 0-9 chars... to avoid problems...
    The reply is currently minimized Show
  • Accepted Answer

    Reis
    Reis
    Offline
    Thursday, December 23 2010, 04:24 PM - #Permalink
    0
    Thanks Germi,

    I am talking about file names for exemple:
    file Café Da Manhã.mp3

    when I scan folder it shows Cafй Da Manhг.mp3

    if I "Create a new album using this files" you know what happens. song will not play.

    Now, I understand you are saying it should be without accents, do you have plans to fix this limitation? This is the only place where UTF-8_unicode is not fully supported. Music collection will not do the job for me if there is no way out.

    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Reis
    Reis
    Offline
    Thursday, December 23 2010, 04:28 PM - #Permalink
    0
    Just to add a note: Files will play and work well with accents. the only issue is the scan folder not reading correctly.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 23 2010, 06:00 PM - #Permalink
    0
    oh! I understand now what you mean.
    yes, accents on filenames may cause problems some times.

    well, the first suggestion is: if you can, use non-accent filenames...

    in any case, I'm going to investigate this, to see if this problem can be avoid when scanning a folder!!!
    The reply is currently minimized Show
  • Accepted Answer

    Reis
    Reis
    Offline
    Thursday, December 23 2010, 11:38 PM - #Permalink
    0
    Thanks germi, I appreciate your effort. I really like what I was able to build with your app so far.

    If you give me some leads to which file do the directory read I would gladly try to help in the investigation.

    Thanks again
    The reply is currently minimized Show
  • Accepted Answer

    Friday, December 24 2010, 05:38 PM - #Permalink
    0
    the file is administrator/components/com_muscol/controllers/albums.php

    the function is scan_folder(), on line 748 approx. if you want to take a look at it, be my guest! 4 eyes see more than 2! ;)

    thank you very much!

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Reis
    Reis
    Offline
    Saturday, December 25 2010, 11:45 PM - #Permalink
    0
    Add to line 12 fixed the issue

    header('Content-Type: text/html; charset=UTF-8_unicode');

    thanks for the head start germi.
    The reply is currently minimized Show
  • Accepted Answer

    impressi
    impressi
    Offline
    Tuesday, February 22 2011, 11:17 PM - #Permalink
    0
    Hello There,

    I have a similar problem. I have setup a site with music collection but since I am in greece whenever a user uploads a song, ad the song name is in greek, then the file takes the title name and since it's in Greek it doesn't play.
    I have tried to do the solution above but didn't work. Most probably because it's for uploading from scanned folder.
    Do you have any similar solution to my problem.

    Thank you
    The reply is currently minimized Show
  • Accepted Answer

    Friday, February 25 2011, 04:02 AM - #Permalink
    0
    can you send a link to your site? (to an album page)
    The reply is currently minimized Show
  • Accepted Answer

    impressi
    impressi
    Offline
    Friday, February 25 2011, 11:07 AM - #Permalink
    0
    You can check this link.
    The reply is currently minimized Show
Your Reply