Re: [webauthn] truncation to 64-byte upper limit doesn't mention character boundaries

fyi/fwiw, here's "[counting [unicode] characters in utf-8 strings](http://canonical.org/~kragen/strlen-utf8)", where they note (at end):

* the penalty for counting UTF-8 characters, or indexing into or iterating over the characters of a UTF-8 string, is very small. 

* People probably shouldn't worry about the efficiency of counting and iterating over characters in UTF-8 strings, at least not if they were using null-terminated C strings before.

..and provide several code examples.


-- 
GitHub Notification of comment by equalsJeffH
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/973#issuecomment-404312003 using your GitHub account

Received on Wednesday, 11 July 2018 21:16:14 UTC