Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-14119

Allow to view std::string in debugger as utf-8 string (now it's displayed only as "latin-1")

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.4.0-rc1
    • Qt Creator 3.4.0-rc1
    • Debugger
    • None
    • Ubuntu 14.04, 64 bit.
      3.4 branch, revision a65d0f88.

    • 90c9093a49da4b0ed79255333a38312eaaceff63

    Description

      Consider following example:

      #include <string>
      
      int main()
      {
         std::string str = "ั‚ะตัั‚"; // some utf-8 text
      
         return 0;
      }
      

      "str" string in debugger can be viewed only as latin-1 string.
      For "char *" strings it is possible to select character encoding for text (at least between some different utf-* encodings), I suggest to implement displaying std::string strings in different encodings (at least in utf-8).

      Attachments

        Activity

          People

            hjk hjk
            vrutsky Vladimir Rutsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: