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

        1. test.cpp
          0.1 kB
          Vladimir Rutsky
        2. try_to_select_ecoding_for_string.png
          143 kB
          Vladimir Rutsky
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes