Example:
String test="hi\000\000\000"
Problem:
Some methods require a string to be without nulls, how can I delete all null values of a string?
.split("\000",1) gives me an error: 'force_encoding' method doesn't exist
.gsub('\000','') does nothing
Even more simple: