Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Menu & Window Caption - special chars aren't displaying correctly
Qt 6.12 LTS is out! See what's new in the release blog

[Solved] Menu & Window Caption - special chars aren't displaying correctly

Scheduled Pinned Locked Moved General and Desktop
37 Posts 6 Posters 48.0k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #27

    Project: https://rapidshare.com/files/460763531/utf.zip

    Settings:

    https://rapidshare.com/files/460765358/trs5.PNG
    https://rapidshare.com/files/460765359/trs3.PNG
    https://rapidshare.com/files/460765360/trs4.PNG

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #28

      You must add the UTF-8 configs to your .pro and main method, as explained in "this comment":http://developer.qt.nokia.com/forums/viewreply/33472/

      These steps are always required, when using UTF-8 encoded sources.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Peppy
        wrote on last edited by
        #29

        Really? Okay... I'll add it.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Peppy
          wrote on last edited by
          #30

          Yes, it works...great - problems are solved...

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Peppy
            wrote on last edited by
            #31

            I am back: Another problem with encoding: Message Boxes...How to repair it?

            1 Reply Last reply
            0
            • G Offline
              G Offline
              giesbert
              wrote on last edited by
              #32

              That was a question like: my computer crashes, what went wrong.
              be more precise
              give us code, exact locations etc.

              Nokia Certified Qt Specialist.
              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #33

                [quote author="Peppy" date="1304760679"]I am back: Another problem with encoding: Message Boxes...How to repair it?[/quote]

                You want to read: http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  Peppy
                  wrote on last edited by
                  #34

                  Okay: this is code:
                  "http://pastebin.com":http://pastebin.com/45LnaGCM

                  And it write something like at the beginning of this topic (some special chars are not displayed correctly)...
                  Maybe Qt uses WIN32API function MessageBoxA(A as Ansi)(...); which should be deprecated, but it uses Ansi variant of MessageBox (my opinion)...

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    Peppy
                    wrote on last edited by
                    #35

                    Yes, I've solved the problem and this is solution:
                    Do not work with output before set up the codecs (as it was shown before)...

                    Thank you guys, I think everything is solved...so let's mark as solved...

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #36

                      [quote author="Peppy" date="1304765139"]Thank you guys, I think everything is solved...so let's mark as solved...[/quote]

                      You can do this yourself:
                      Go to the very first post of this thread, click the edit link just below your avatar on the right and prepend "[Solved]" to the topic

                      1 Reply Last reply
                      0
                      • ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by
                        #37

                        Your code have successfully worked in my computer(Windows 7 & Qt 4.7.2)...

                        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
                        • Unsolved