This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Section 6.1 - utf-8 encoding Step 8.2: Append to bytes 0x80 + the remainder of dividing temp by 64^count (as integers). I believe this should simply be: Append to bytes 0x80 + the remainder of dividing temp by 64 (as integers). 8.1 already does the shift: temp = code_point >> ((count - 1) * 6) 8.2 just needs to mask off the bits 0x80 | (temp & 0x3f) a.k.a. 0x80 + (temp % 64)
Thanks! http://dvcs.w3.org/hg/encoding/rev/f282674bbe52