]> Lady’s Gitweb - Gitweb/commit
gitweb: Handle non UTF-8 text better
authorMartin Koegler <redacted>
Sun, 3 Jun 2007 15:42:44 +0000 (17:42 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
commitcec2c9e063e79d4e55abcbb8e8da0ce85e6b8f92ec077fd1e45476d7979123d6
tree2825b967063c8e0ad6c3407d30944bf742333026e5a7e6fbec2e3449908c4dfa
parentc27bd8fcb06c3aa3282e71d4aca2c9791eb49260c071d8de70ec4d44004e929d
gitweb: Handle non UTF-8 text better

gitweb assumes that everything is in UTF-8. If a text contains invalid
UTF-8 character sequences, the text must be in a different encoding.

This commit introduces $fallback_encoding which would be used as input
encoding if gitweb encounters text with is not valid UTF-8.

Add basic test for this in t/t9500-gitweb-standalone-no-errors.sh

Signed-off-by: Martin Koegler <redacted>
Signed-off-by: Jakub Narebski <redacted>
Tested-by: Alexandre Julliard <redacted>
Tested-by: Ismail Dönmez <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.203142 seconds and 4 git commands to generate.