Reputation: 1648
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
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