ATM there is no such function, but you could either add that function yourself or test first with getAscii() of libcod:
PHP Code:
getAscii(str) { return closer(902, str); }
Example from ClientCommand:
PHP Code:
fixChatArgs(args)
{
if (isDefined(args[1])) { // engine is adding identifier infront of the chat message
if (std\utils::getAscii(args[1][0]) >= 20 && std\utils::getAscii(args[1][0]) <= 22) {
//std\io::print("delete bad ascii code: " + std\utils::getAscii(args[1][0]) + "\n");
args[1] = getSubStr(args[1], 1);
newArgs = strTok(args[1], " ");
for (i=0; i<newArgs.size; i++)
args[1+i] = newArgs[i];
}
}
return args;
}
Then step over any char, print the ascii-numbers, check whats wrong, search for solution.