Click here to Skip to main content
15,887,328 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
If I type something in the main window, it works fine with accents. But if I write accented characters in another module and call it in main, it doesn't work.
C++
THE MAIN:
#ifdef _WIN32
    #include <windows.h>
    #endif

int main()
{
    #ifdef _WIN32
    SetConsoleCP(1250);
    SetConsoleOutputCP(1250);
    #endif
Jatek();

    return 0;
}


What I have tried:

I tried to copy the codes to the modul but didn work-
Posted
Updated 25-Nov-23 21:44pm
v2

1 solution

The description is far too imprecise and a lot of information is missing. There are a lot of difficulties with special characters, as there are many ways to encode them.
Which compiler? Which operating system? Where is the source code for the problem? In which format is the source code stored? Does "type in the main window" mean source code or console?
Please add further information to the question above so that everyone is aware.
The phrase "doesn't work" often doesn't help, but a precise description of what exactly is different from what is desired.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900