4619: diff-comments can return wrong size of html content


What version are you running?


What's the URL of the page containing the problem?


What steps will reproduce the problem?

  1. have diff with unicode content
  2. make comment for fragment with unicode text
  3. get js error on ...../r/42/ for all fragments after fragment with unicode content

What is the expected output? What do you see instead?

doesn't matter

What operating system are you using? What browser?

doesn't matter

Please provide any additional information below.

html payload size return bytes not a symbol count

fixed by change len(html) to len(html.decode('utf-8'))

#1 Tab10id

sorry it duplicate #4617