Unicode string from concole methods
by Yannis Sovolakis · in Technical Issues · 05/23/2007 (3:47 pm) · 0 replies
Hi there.
I would like to know what is the way to return a unicode string from a console method defined inside the engine.
Any atempt setting the string from script seems to be successful, but when defining a ConsoleMethod returning const char * values, all I get is non-readable characters.
I tried using getCopy8 of the StringBuffer class, but I am a little lost on how exactly to use it.
Is there an example in the engine that could give me a hint?
Thanks in advance for any kind of help,
Yannis
I would like to know what is the way to return a unicode string from a console method defined inside the engine.
Any atempt setting the string from script seems to be successful, but when defining a ConsoleMethod returning const char * values, all I get is non-readable characters.
I tried using getCopy8 of the StringBuffer class, but I am a little lost on how exactly to use it.
Is there an example in the engine that could give me a hint?
Thanks in advance for any kind of help,
Yannis