vendredi 21 octobre 2016

C++ UTF-8 strings

I am reading 'The C++ programming language' by Bjarne Stroustrup and in section 7.3.2.2 is stated that by printing:

u8"the officials vowels in Danish are:a, e, i o, u, \u00E6, \u00F8, \u00E5 and y."

you will get:

the officials vowels in Danish are:a, e, i o, u, æ, ø, å and y.

However, if i try this on my own machine i get this:

the officials vowels in Danish are:a, e, i o, u, ├Ž, ├Ş, ├ą and y.

What am i doing wrong ?

Aucun commentaire:

Enregistrer un commentaire