critic icon indicating copy to clipboard operation
critic copied to clipboard

Unicode problems in renderChains

Open andreastt opened this issue 9 years ago • 2 comments

The renderChains routine that displays the comments attached to a review (/r/N) has problems displaying unicode characters.

See the attached screenshot where the character ’ is replaced by �:

screen shot 2015-05-13 at 13 37 00

andreastt avatar May 13 '15 12:05 andreastt

I guess this is a problem with lack of unicode strings and string slicing in src/reviewing/comment/__init__.py:159, or potentially how strings are decoded when they come out of the database.

andreastt avatar May 13 '15 12:05 andreastt

Critic uses UTF-8 encoded byte strings throughout, including to/from the database, so the string slicing you point to is certainly problematic, and very likely to have caused the issue in the screenshot given that the error is at the end of the string.

jensl avatar May 13 '15 13:05 jensl