• Bob Van Landuyt's avatar
    Reject incomplete multibyte strings · 5dc00c45
    Bob Van Landuyt authored
    Trying to encode the input to UTF8 before matching would cause errors
    when the string includes incomplete multibyte characters or any
    characters ruby can't convert to UTF8.
    5dc00c45
handle_malformed_strings.rb 3.33 KB