Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QML Open Image file saved in Japanese/Chinese.
Forum Updated to NodeBB v4.3 + New Features

QML Open Image file saved in Japanese/Chinese.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 390 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chirag Modh
    wrote on last edited by
    #1

    I am trying to display image on my Linux platform based device.
    Using QML : Image object to display Image.
    Images which having path in Japanese /Chinese languages are not laoding on UI.
    ex:
    path: /tmp/USB1/image/写真/1.jpg

    any special handling required to open this file.

    Thanks,
    Chirag

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chirag Modh
      wrote on last edited by
      #2

      It works with

      QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
      Put this statement in main.cpp

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved