dileping
dileping

Reputation: 1648

Standard C strings in android NDK

Does anyone know what is the default c-string encoding in android NDK?

OS X and iOS i.e. use UTF-8 strings, windows uses ANSI strings. What about android?

Upvotes: 0

Views: 1152

Answers (1)

Alex Cohn
Alex Cohn

Reputation: 57173

NDK is kind of encoding-ignorant. Its C strings cannot be directly displayed. But if you use JNI to pass these strings to the Java application layer, you should prepare them as Modified UTF-8.

Upvotes: 1

Related Questions