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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -