I was testing glsl and shader wasn’t doing what I want. I have this piece of code to retrieve logs (I’m using JOGL).
gl.glGetShaderInfoLog(vertexShader, INFO_LOG_SIZE, charsWritten, bb);
I get the string from within “bb” and find marvelous question marks.
I debug and then I find this

In my infinite knowledge of chinese google tells me:
Garrulous contravene several radial Tangju Shuiceonliedao Aigeshexiong Lake Yanjishuolang Mu Quraomangshui Fang
As you can see this is very helpful to me 😀
Can I change the log language… or something?
Thanks!
Looks like you’re intrepreting some random binary data as a string; Windows internally uses wide characters (i.e. 16 bit chars) so any data being nonzero in the high byte will end up rendering some asian script.
EDIT: (It’s a Java program, didn’t notice that first)
Java’s ByteBuffer asCharBuffer interprets the data in the buffer as wide character string (i.e. two bytes per character), while OpenGL will return you a one byte per character string. I’m not a Java wizard, so I’d probably produce a lot of Coded Smorgasbrod if I attempted a solution here. You need to find a function that properly converts a 8 bit per character string into a Java CharBuffer, or manually prepend each returned byte with a zero byte.