0
#include <iostream>
#include <cmath>
#include <string>
int main(){
char g=(char)146;
cout << "hello"<<g << endl; 

wchar_t g1=L'\u00C6';
wcout << "hello"<<g1 << endl;
}

I want to print Æ on the terminal. I am able to do so using char and its Ascii value.I want do it using Unicode value and wchar_t or wide character in c++.How to do it? when I run the above code the output is-

helloÆ
hello╞

0 Answers0