You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've went through the quick tutorial (C++), and I noticed the string members in the output binary is having a lot of 0x00 characters. My initial guess was that the string members are writen in UTF-8 mode, then I found the schema guide mentioned:
"string, which may only hold UTF-8 or 7-bit ASCII."
It sounds like we could change it to ASCII mode, however I tried to explicitly use const char * name = "Sword"; and pass this explicit char variable to CreateString and its still written in UTF-8 mode.
I'm not sure if my deductions are accurate so I'll write my question in a more generic sense, I would like to know if its possible to write in single byte per character for string, if it is then how do we change string to write to binary in such manner?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've went through the quick tutorial (C++), and I noticed the
stringmembers in the output binary is having a lot of0x00characters. My initial guess was that thestringmembers are writen in UTF-8 mode, then I found the schema guide mentioned:"
string, which may only hold UTF-8 or 7-bit ASCII."It sounds like we could change it to ASCII mode, however I tried to explicitly use
const char * name = "Sword";and pass this explicit char variable toCreateStringand its still written in UTF-8 mode.I'm not sure if my deductions are accurate so I'll write my question in a more generic sense, I would like to know if its possible to write in single byte per character for
string, if it is then how do we changestringto write to binary in such manner?Beta Was this translation helpful? Give feedback.
All reactions