c++ - not printing 5 letter long unicode -


strcpy(t, u8"\u1d004"); print("%s", t) 

this printing a4, taking 1d00 symbol of a. want print 1 @ https://en.wikipedia.org/wiki/byzantine_musical_symbols

thanks,

read the documentation!

\unnnn       universal character name              (arbitrary unicode value);          code point u+nnnn              may result in several characters ------------------------------------------------------------------------ \unnnnnnnn   universal character name              (arbitrary unicode value);          code point u+n              may result in several characters 

so:

strcpy(t, u8"\u0001d004"); //           ^^^^^ 

Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -