3 ms·
> First, you're looking at a feature of modern Ruby that got added in 1.9. I thought 1.9 died quite some time ago. > what do you expect if you have an invalid
by paulddraper 9y ago
> First, you're looking at a feature of modern Ruby that got added in 1.9.
I thought 1.9 died quite some time ago.
> what do you expect if you have an invalid byte sequence in your UTF-8 string?
What I expected: An error when creating the invalid UTF-8 string literal.
What I got: An when trying to split the UTF-8 string.
It's a very odd place to get an error.