Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

OS X charset issues

Help
2008-01-01
2013-04-25
  • Should I not be using UTF-8 with Mac OS X (10.5.1).

    I've got fuppes serving up audio fine to my ps3, as long as the mp3 path doesn't contain any weird characters.

    For example, it won't play anything by Bjork, here's some output:

    == lib/HTTP/HTTPServer.cpp (344) :: Tue Jan  1 03:22:36 2008 ==
    REQUEST GET /MediaServer/AudioItems/00FFFFD95D.mp3 HTTP/1.0
    Host: 192.168.0.5:8888
    User-Agent: PLAYSTATION3
    Connection: close
    Accept-Encoding: identity
    Cache-Control: no-cache

    == lib/HTTP/HTTPRequestHandler.cpp (80) :: Tue Jan  1 03:22:36 2008 ==
    HandleHTTPRequest() :: /MediaServer/AudioItems/00FFFFD95D.mp3

    == lib/ContentDirectory/ContentDatabase.cpp (417) :: Tue Jan  1 03:22:36 2008 ==
    SELECT select count(*) as VALUE from OBJECTS where OBJECT_ID = 4294957405 and DEVICE = 'default';

    == lib/ContentDirectory/ContentDatabase.cpp (417) :: Tue Jan  1 03:22:36 2008 ==
    SELECT select   * from   OBJECTS o   left join OBJECT_DETAILS d on (d.ID = o.DETAIL_ID) where   o.OBJECT_ID = 4294957405 and o.DEVICE = 'default'

    == lib/HTTP/HTTPRequestHandler.cpp (262) :: Tue Jan  1 03:22:36 2008 ==

    == lib/HTTP/HTTPServer.cpp (571) :: Tue Jan  1 03:22:36 2008 ==
    send response HTTP/1.0 404 Not Found
    Content-Type: text/html
    Content-Length: 0
    Accept-Ranges: bytes
    Connection: close
    DATE: Tue, 01 Jan 2008 09:22:36 GMT
    contentFeatures.dlna.org:
    EXT:
    Server: Darwin/9.1.0, UPnP/1.0, Free UPnP Entertainment Service/SVN-r580

    output from my fuppes.db for this track is:
    sqlite> select * from objects where object_id=4294957405;
    112921|4294957405|39809|121|default|/Users/garza/Music/iTunes/iTunes Music/Bjo%CC%88rk Gudmundsdo%CC%81ttir & Trio%CC%81 Gudmundar Ingo%CC%81lfssonar/Gling-Glo%CC%81/01 Gling Glo%CC%81.mp3|/Users/garza/Music/iTunes/iTunes Music/Bjo%CC%88rk Gudmundsdo%CC%81ttir & Trio%CC%81 Gudmundar Ingo%CC%81lfssonar/Gling-Glo%CC%81/01 Gling Glo%CC%81.mp3|Gling Gló|||
    sqlite>

    note the weird %CC% in the path.  I'm not sure where to start troubleshooting this.

     
    • Ulrich Völkel
      Ulrich Völkel
      2008-01-04

      What's OS X's default charset?
      Did you import files via shared directories or via iTunes db?

      The "weired %CC" looks like URL-encoded.

      - Uli

       
    • hmm, i've made a bit more progress with this (finally had some free time to take another crack at it).

      OS X does operate in UTF-8.  The problem, I found, is the for some reason, the paths stored in the iTunes library files are not (while all the other id3 tag info is stored in UTF-8).  Paths seemed to stored in the older Macintosh charset.  This results in fuppes trying to access paths on an UTF-8 system with non-UTF file names.

      I'll make a bug report to I can attach a simple itunes.xml library with just one file to show how the xml is improperly storing the path names.