12-20-2022 09:31 AM
Hello people,
I´m using CVI 2020 and some "printf" do print messages in the Standard I/O (console), with some accented characters. But these characters are printed incorrectly.
In the "Debug Window", these characters are OK, but not in the console.
In the menu: Options - Environment - Encoding: I´m using the "Character ser for interpreting ANSI strings" as "System Codepage", but it appears that at the moment the console window opens, the codepage is changed, and the characters are printed wrong.
I´m using Windows 10, with "language & region" defined correctly (portuguese), and checking the codepage in the console (cmd) window, give me 850 - whitch is correctly also.
In CVI 2017, there is not any problems with these characters.
Could you help me?
12-21-2022 06:21 AM
Hello Ale,
When you [Right-click][Properties] on the console's top bar, what codepage does it give you?
12-21-2022 06:39 AM
When I do that I obtain 850.
Thanks gdargaud!
12-22-2022 03:19 AM
Mine gives me 437, both are default for english. I'd think it'd be enough to change the codepage for default console (860 in your case), but I think it takes after Windows own codepage. And you said you've already done that.
There are forums saying that you can change a registry key to set the console codepage separately from Windows. I'm no expert in this (I always write my LabWindows programs in english!) and I use Linux when dealing with text (everything has been UTF8 for a while).