Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to write string in ASCII mode #8113

Unanswered
jonnysoe asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /