I tried using wchar_t but it gave a warning and print weird characters in the terminal. or printing directly gave the same result
cout<<"Ø"<<" "<<"";
gives output:
Ø 𐌟
I tried using wchar_t but it gave a warning and print weird characters in the terminal. or printing directly gave the same result
cout<<"Ø"<<" "<<"";
gives output:
Ø 𐌟
#include <string>
#include <iostream>
#include <Windows.h>
#include <cstdio>
int main(){
// Set console code page to UTF-8 so console known how to interpret string data
SetConsoleOutputCP(CP_UTF8);
// Enable buffering to prevent VS from chopping up UTF-8 byte sequences
setvbuf(stdout, nullptr, _IOFBF, 1000);
std::cout<<"Ø"<<" "<<"";
}
I got the answer, It prints the value as expected