Test case with more than 4-bytes


  • 1
    W

    There is a test case with:

    [240,162,138,147,17]
    # ^ true
    

    However since there are more than 4-bytes isn't this automatically an invalid utf-8 encoding?

    A character in UTF8 can be from 1 to 4 bytes long
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.