samedi 19 octobre 2019

Symbol to Unicode

How can I convert symbol to unicode? For example I type "Ķ" in console and I get the answer "U+0136"

string a = "Ķ";
cin >> a;
cout << unicode(a); // Prints me "U+0136"

Aucun commentaire:

Enregistrer un commentaire