trixirt created this revision. trixirt added reviewers: serge-sans-paille, michaelplatings. trixirt added a project: clang. Herald added a subscriber: cfe-commits.
send_patched_file decodes with utf-8. The default encoder for python 2 is ascii. So it is necessary to also change send_string to use utf-8. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D83984 Files: clang/tools/scan-view/share/ScanView.py Index: clang/tools/scan-view/share/ScanView.py =================================================================== --- clang/tools/scan-view/share/ScanView.py +++ clang/tools/scan-view/share/ScanView.py @@ -744,7 +744,7 @@ return f def send_string(self, s, ctype='text/html', headers=True, mtime=None): - encoded_s = s.encode() + encoded_s = s.encode('utf-8') if headers: self.send_response(200) self.send_header("Content-type", ctype)
Index: clang/tools/scan-view/share/ScanView.py =================================================================== --- clang/tools/scan-view/share/ScanView.py +++ clang/tools/scan-view/share/ScanView.py @@ -744,7 +744,7 @@ return f def send_string(self, s, ctype='text/html', headers=True, mtime=None): - encoded_s = s.encode() + encoded_s = s.encode('utf-8') if headers: self.send_response(200) self.send_header("Content-type", ctype)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits