Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1899

DocumentGalleryModel url & filePath properties are not correctly UTF-8 encoded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.2.1
    • Document Gallery
    • None
    • Meego Harmattan 1.2, Nokia N950 with 1.2011.34-2_PR_RM680 version.

      When retrieving informations using DocumentGalleryModel, the properties "url" and "filePath" are not correctly shown, resulting in impossibility to play all those songs/media which have accents or any other character. Following there is example code to test the issue:

      import QtQuick 1.1
      import com.meego 1.0
      import QtMobility.gallery 1.1
      
      Page {
      
          ListView {
              id: view
              anchors.fill: parent
      
              clip: true
      
      
      
              model: DocumentGalleryModel {
                  id: audioModel
                  sortProperties: ["title"]
                  rootType: DocumentGallery.Audio
                  properties: [ "fileName", "url", "artist", "title", "albumTitle", "albumArtist", "duration", "filePath" ]
              }
      
              delegate: Item {
      
                   width: 480
                   height: 80
      
                   Label {
                       text: filePath
      
                   }
      
      
                   MouseArea {
                       anchors.fill: parent
      
                       onClicked:
                       {
                           console.debug("Title: " + title)
                           console.debug("Artist: " + artist)
                           console.debug("filePath: " + filePath)
                           console.debug("url: " + url)
                       }
                   }
              }
          }
      }

      and the debug output for an audio file having the char 'è' is:

      Title: Sans contrefacon
      Artist: Mylène Farmer
      filePath: /home/user/MyDocs/Music/Myl%C3%A8ne Farmer - Sans contrefacon.mp3
      url: file:///home/user/MyDocs/Music/Myl%C3%A8ne%20Farmer%20-%20Sans%20contrefacon.mp3

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            djcb Dirk-Jan C. Binnema
            ggiovanni88 Giovanni Grammatico
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes