Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Non-latin characters are shown correctly in Debug mode but not in Release

Non-latin characters are shown correctly in Debug mode but not in Release

Scheduled Pinned Locked Moved C / C++ / MFC
c++debuggingquestionannouncementlearning
7 Posts 3 Posters 0 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.
  • S Offline
    S Offline
    sdancer75
    wrote on last edited by
    #1

    Hi, I am using an MFC dialog (ANSI no Unicode) created in the resource editor with a nonlatin character name in its title, as a Property page. While running the debug mode I can see the nonlatin title in release mode I get a gibberish characters. What seems to be wrong here?

    sdancer75

    L S 2 Replies Last reply
    0
    • S sdancer75

      Hi, I am using an MFC dialog (ANSI no Unicode) created in the resource editor with a nonlatin character name in its title, as a Property page. While running the debug mode I can see the nonlatin title in release mode I get a gibberish characters. What seems to be wrong here?

      sdancer75

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      sdancer75 wrote:

      What seems to be wrong here?

      It is difficult to say without more information. Maybe some difference between Debug and Release settings. When you say "non Latin", what characters are you referring to?

      S 1 Reply Last reply
      0
      • L Lost User

        sdancer75 wrote:

        What seems to be wrong here?

        It is difficult to say without more information. Maybe some difference between Debug and Release settings. When you say "non Latin", what characters are you referring to?

        S Offline
        S Offline
        sdancer75
        wrote on last edited by
        #3

        Hi, Thank you for your interest... Its the 1st time I meet this kind of problem. My Visual Studio is pretty old v2008 and the project settings are similar. Both Debug and Release share the same *.rc file. They are both an MFC Static, not using ATL and Character Set are "not set". My nonlatin character set is Greek. I can see the Greek titles in my dialog boxes in the editor. The only problem here is the Release version of the app. Don't know where to look for a problem. Regards,

        sdancer75

        L 1 Reply Last reply
        0
        • S sdancer75

          Hi, Thank you for your interest... Its the 1st time I meet this kind of problem. My Visual Studio is pretty old v2008 and the project settings are similar. Both Debug and Release share the same *.rc file. They are both an MFC Static, not using ATL and Character Set are "not set". My nonlatin character set is Greek. I can see the Greek titles in my dialog boxes in the editor. The only problem here is the Release version of the app. Don't know where to look for a problem. Regards,

          sdancer75

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I think the Greek character set requires Unicode to display correctly. Try changing the settings on your project.

          S 1 Reply Last reply
          0
          • L Lost User

            I think the Greek character set requires Unicode to display correctly. Try changing the settings on your project.

            S Offline
            S Offline
            sdancer75
            wrote on last edited by
            #5

            Hi, I have used older projects with Greek characters in ANSI and code pages without problems. Indeed unicode will solve the problem, but this specific project is too big and I have to make too many changes to finally make it work fine. Anyway, I managed to fix the problem changing the title of the title dynamically inside the code. Take in mind that when I recall strings from the Resource String Table using CString.LoadString(ID) I get gibberish but when I am using CStringW.LoadString(ID) it works. My String Table is not Unicode but inside VS2008 I set it up as Greek code page.

            sdancer75

            1 Reply Last reply
            0
            • S sdancer75

              Hi, I am using an MFC dialog (ANSI no Unicode) created in the resource editor with a nonlatin character name in its title, as a Property page. While running the debug mode I can see the nonlatin title in release mode I get a gibberish characters. What seems to be wrong here?

              sdancer75

              S Offline
              S Offline
              Stefan_Lang
              wrote on last edited by
              #6

              Two possible problems 1. In the project settings, make sure the character set is set to unicode for both debug and release 2. if you use third party libraries (other than MFC), make sure they also use unicode for both Debug and Release.

              GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

              S 1 Reply Last reply
              0
              • S Stefan_Lang

                Two possible problems 1. In the project settings, make sure the character set is set to unicode for both debug and release 2. if you use third party libraries (other than MFC), make sure they also use unicode for both Debug and Release.

                GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

                S Offline
                S Offline
                sdancer75
                wrote on last edited by
                #7

                Hi, Thanks for your reply. Indeed I am using a 3rd party library but they are all set to ANSI (no unicode at all). I fixed the problem by dynamically changing the Dialog Title. Regards,

                sdancer75

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups