c - How to output special characters in cmd window? -


once write c program , try output special characters (like ä ö ü ß) printf() on cmd window on windows 10 shows sth ▒▒▒▒▒▒▒▒▒▒▒▒

but if type them in cmd window without c programm being executed displays these characters properly. when change console type standard output in netbeans output correct well. tried change codepage of cmd didnt fix problem. use gcc c compiler.

it way printf handled , default printf only prints ascii characters in , a's z's , here link wikipedia article https://en.wikipedia.org/wiki/ascii , print special characters / characters other languages , use , replace your string text want print

printf(l"your string"); 

in short , add prefix l , capital l before string print special characters.

hope helped mukund2003


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

Voice chat over bluetooth between Android & Python (pybluez) -

Integrate jquery-globalize into an ASP.NET Core MVC App -