RestfulMonad, on 25 January 2013 - 01:31 PM, said:
Orwell, on 25 January 2013 - 12:19 PM, said:
IIRC LuaJ has some problems with 8bit values in strings... We've had those problems with the http API, rednet and the fs API when not using binary mode. It just doesn't like strings of unsigned chars or something...
That was my first guess, that it was discarding my characters at the Lua level. But I recall being able to craft a string containing non-alphanumeric characters and roundtrip them back to the right integers via string.byte and string.char. I do believe the root of the problem is the function ComputerCraft uses to map characters to texture coordinates in the default font: ChatAllowedCharacters. Last I checked MCP, that function specifically disallows all sorts of non-texty letters and shunts them to ?s.
Though the last I peeked at a decompilation of ComputerCraft was when I posted my first suggestion and there've been a lot of releases since.
If MCP explicitly shunts characters to ?'s using ChatAllowedCharacters, then it can't be a coincidence that this happens with displaying them in CC; you're probably right about your hunch then I'd say.











