You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this useful gem. Currently if you use the default :replace strategy, invalid characters are replaced with �, but the null byte is replace with nothing.
it"optionally sanitizes null bytes with the replace strategy"do
If this choice is by design (is it good? is it bad?), it should be clarified in the documentation in any case, because this is definitely not what you expect from reading the docs.
Thanks for this useful gem. Currently if you use the default
:replace
strategy, invalid characters are replaced with �, but the null byte is replace with nothing.This behavior seems unexpected and inconsistent.
Expected: "Hello \x00 world" => "Hello � world"
Actual: "Hello \x00 world" => "Hello world"
The text was updated successfully, but these errors were encountered: