Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. utf-8
    Log in to post

    • SOLVED Random Qt Questions for First Application Release: QThread blocking and UTF-8 labels
      General and Desktop • qthread newbie utf-8 • • squinky86  

      5
      0
      Votes
      5
      Posts
      208
      Views

      The ellipsis are showing up correctly now that I'm using a consistent compiler for my tests. I still have many bugs to fix, but got the first release out the door. Thanks again for all of your help!
    • SOLVED Unicode on ES, files aren't shown in the correct encoding
      Mobile and Embedded • embedded linux utf-8 unicode filesystem filebrowser • • QtEmbeddor  

      8
      0
      Votes
      8
      Posts
      2385
      Views

      The solution to that problem is to insert the following call to the constructor of the file processing class: QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8")); Concerning the shell: I use BusyBox (its light) which doesn't provide locale and the environment variables like LANG=en_US.UTF-8. For compiling BusyBox configurations can or have to be given containing CONFIG_LAST_SUPPORTED_WCHAR=0 the number is the last displayable number of the Unicode list, 0 signifies that all characters shall be displayed, it was set to 767 which includes west European characters. The excluded characters are replaced by the character defined in the same configs, in my case it is "?".
    • SOLVED Reading utf8 QMediaPlaylist
      General and Desktop • utf-8 qmediaplaylist utf8 • • UnitScan  

      8
      0
      Votes
      8
      Posts
      2618
      Views

      [SOLVED] Replace playlist->load(QUrl::fromLocalFile("C:/Users/Marco/Music/default.m3u"), "m3u"); with QFile inputFile("C:/Users/Marco/Music/default.m3u"); if (inputFile.open(QIODevice::ReadOnly)) { QTextStream in(&inputFile); in.setCodec("UTF-8"); while (!in.atEnd()) { QString line = in.readLine().trimmed().toUtf8().constData(); playlist->addMedia(QUrl(QFileInfo(line).filePath())); } inputFile.close(); } and playlist->save(QUrl::fromLocalFile("C:/Users/Marco/Music/default.m3u"), "m3u"); with QFile outputFile("C:/Users/Marco/Music/default.m3u"); outputFile.open(QIODevice::WriteOnly|QIODevice::Text); for (int i=0; i < playlist->mediaCount(); i++) { //… QTextStream out(&outputFile); out << mediafile[0].toUpper()+mediafile.mid(1) << endl; //… } outputFile.close();
    • SOLVED How can i convert Utf-8 encoding to normal text
      General and Desktop • qstring text utf-8 • • Rohith  

      15
      1
      Votes
      15
      Posts
      14932
      Views

      @Rohith instead of converting the unicode string to the escaped characters send it directly in binary form. When you have a QString already you can call QString::toUtf8() and send the returned QByteArray directly. On the client its enough to do QString::fromUtf8( receivedUtf8ByteArray.constData() ) It depends how you implemented the transfer. But theoretically it should be enough to replace your unicode escaping code on the server with this approach.
    • UNSOLVED Encoding and escaped strings
      General and Desktop • qnetworkreply utf-8 encoding • • Mark81  

      4
      0
      Votes
      4
      Posts
      3293
      Views

      @Mark81 Curious. What about: qDebug() << (QString::fromUtf8(value) == QStringLiteral("citt\u00E0")); Where value is the JSON value of that particular field (i.e. città). PS. What I'm trying to figure out is if this is an output issue, or encoding issue.
    • SOLVED QTranslator ru-en && UTF-8
      General and Desktop • utf-8 encoding qtranslator • • 0...-5  

      7
      0
      Votes
      7
      Posts
      1703
      Views

      @SGaist That is true, thanks!
    • UNSOLVED qDebug utf-8 issue
      General and Desktop • qdebug utf-8 ascii • • xalisonx  

      4
      0
      Votes
      4
      Posts
      1532
      Views

      Windows? That explains :-) I tested on Linux. I don't know how to fix this on Windows. Maybe this can help you: http://stackoverflow.com/questions/388490/unicode-characters-in-windows-command-line-how
    • Unicode/UTF-8 encoding while getting data from site via QWebElement
      Qt WebKit • json webkit json parser utf-8 webview webkit encoding unicode qwebframe qwebelement webelementcolle • • slesher  

      1
      0
      Votes
      1
      Posts
      936
      Views

      No one has replied

    • Utf-8 coding problem
      General and Desktop • qt4.8 utf-8 • • mkolenda  

      4
      0
      Votes
      4
      Posts
      1515
      Views

      If I'm not completely mistaken Qt 4.8 does not assume c-strings to be in UTF-8 by default, but instead assumes they are in the systems default encoding. Have you tried with: QString::fromUtf8("mystring");?
    • UTF Encoding ERROR
      General and Desktop • utf-8 encoding • • Lays147  

      5
      0
      Votes
      5
      Posts
      1241
      Views

      @SGaist Its using Serif. In the terminal there, when he run the app the follow error appears: Qt fontDatabase: cannot find font directory /home/user.../ . Is qt install correctly? I think the app is searching for a font in the folder of Qt. But if i make the app static, this font dont need be with the app? Well if i need to copy the font files, how to link to my app?
    • Error: Could not decode "blablobli" with "UTF-8" encoding. Editing not possible.
      Tools • qt creator utf-8 editing not pos qtcreatorbug-14 suggestion for • • koahnig  

      7
      0
      Votes
      7
      Posts
      4327
      Views

      Good idea, voted !