Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem to Display japanese charanters inside source code and adding to combobox

Problem to Display japanese charanters inside source code and adding to combobox

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 813 Views
  • 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.
  • Z Offline
    Z Offline
    Zain
    wrote on 21 Feb 2013, 10:04 last edited by
    #1

    Hello All,

    In my Qt desktop application I want to add Japanese words in QStringList to fill my combobox. First of all it seem Qt Creator doesn't manage to save source code file in unicode format. This mean if I try to put into the code something like:

    @ QString str=QObject::trUtf8("エレクトロニクス");@

    and close and reopen the project instead of the japanese characters above I find something like:

    @ QString str=QObject::trUtf8("????????");@

    and also showing ???????? in combobox at runtime.

    Please suggest me how I can manage Japanese word in my application in source code as well as at run time?

    Thanks in Advance.

    Zain

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sidewinder
      wrote on 21 Feb 2013, 10:09 last edited by
      #2

      Are you sure Qt Creator is using correct encoding? I think Qt Creator defaults to to system encoding. Check "this":http://qt-project.org/doc/qtcreator-2.6/creator-editor-settings.html.

      "Never memorize what you can look up in books."
      Albert Einstein

      1 Reply Last reply
      0

      1/2

      21 Feb 2013, 10:04

      • Login

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