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. The Application Out show messy for chinese characters when use qDebug class only in the Debug Mode

The Application Out show messy for chinese characters when use qDebug class only in the Debug Mode

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 409 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.
  • N Offline
    N Offline
    NekoNow
    wrote on last edited by
    #1
    qDebug()  << ("程序开始运行");
    

    The source file is utf-8 with bom
    The compiler is mingw32

    It executes correctly without debug but it show messy with the debug mode in the same code and the same environment.

    I do not know what is the reason.

    jsulmJ 1 Reply Last reply
    0
    • N NekoNow
      qDebug()  << ("程序开始运行");
      

      The source file is utf-8 with bom
      The compiler is mingw32

      It executes correctly without debug but it show messy with the debug mode in the same code and the same environment.

      I do not know what is the reason.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @NekoNow said in The Application Out show messy for chinese characters when use qDebug class only in the Debug Mode:

      I do not know what is the reason

      The reason is probably the encoding in the terminal where qDebug() output is printed.
      Also, your description is not clear: do you mean in release mode qDebug() shows the output correctly, but in debug mode it does not?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      N 2 Replies Last reply
      1
      • jsulmJ jsulm

        @NekoNow said in The Application Out show messy for chinese characters when use qDebug class only in the Debug Mode:

        I do not know what is the reason

        The reason is probably the encoding in the terminal where qDebug() output is printed.
        Also, your description is not clear: do you mean in release mode qDebug() shows the output correctly, but in debug mode it does not?

        N Offline
        N Offline
        NekoNow
        wrote on last edited by
        #3

        @jsulm it runs correctly witou debugger,but it run wrong with debugger,it attached to debug.

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @NekoNow said in The Application Out show messy for chinese characters when use qDebug class only in the Debug Mode:

          I do not know what is the reason

          The reason is probably the encoding in the terminal where qDebug() output is printed.
          Also, your description is not clear: do you mean in release mode qDebug() shows the output correctly, but in debug mode it does not?

          N Offline
          N Offline
          NekoNow
          wrote on last edited by
          #4

          @jsulm i found the clue,it show messy because the gdb runs with python,it shows warning in the debug console.

          1 Reply Last reply
          0

          • Login

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