#4748 UTF-8 handling problem when displaying README.md
Opened 4 years ago by nim. Modified 3 years ago

As seen on

https://src.fedoraproject.org/rpms/fonts-rpm-macros/blob/master/f/README.md

the UTF-8 quote after Fedora is not displayed correctly (in edit mode it shows up correctly)


What's on the page is b'\xe2\x80\x99' and b'\xe2\x80\x99'.decode('utf8') == '’' and '’'.encode('utf8').decode('latin1') = 'â\x80\x99', so even though the HTML says the document is UTF8, pagure is reading the README.md in latin1.

I don't think it is specific to README.md.

This file is also shown incorrectly:
https://pagure.io/rpmdevtools/blob/master/f/rpmdev-spectool
(the © after Copyright )

Login to comment on this ticket.

Metadata