Non-latin characters are shown correctly in Debug mode but not in Release
-
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
-
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
-
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?
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
-
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
-
I think the Greek character set requires Unicode to display correctly. Try changing the settings on your project.
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
-
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
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)
-
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)