OpenGL has a few functions like glGetString
and glGetShaderInfoLog
that return strings. What form of text encoding is used for these?
I assume, given that they're returned as a GLchar*
, that it is ASCII encoded text contained in the return value but is this specified anywhere?
As a second and related point, what text encoding is expected by functions such as glShaderSource
and glBindAttribLocation
. Do GLSL programs have to be encoded in ASCII or can it be UTF-8?