Code
print("test1:")
print( string.char( 0 ) .. "hallo welt" )--dont get printed \0 terminated
local bad = {
//whitesapce here
[string.char( 0 )] = "[__null]"
}
oprint = oprint || print
print = function( ... )
local args = { ... }
for k , v in next, args do
for x , y in next, bad do args[k] = string.Replace( v , x , y ) end
end
return oprint( unpack( args ) )
end
print("test2:")
print( string.char( 0 ) .. "hallo welt" )--work - filterd
Alles anzeigen
this fix print with null charakter can add whitespace too