Hi, I'm experiencing a problem with gitweb and some utf-8 bits like £ (the pound sign) when showing diffs. Example (Firefox's output): XML Parsing Error: not well-formed Location: https://hostname/gitweb?p=redacted.git;a=commitdiff;h=16ae27d6b030949772b298c6e2935a09c48169a7 Line Number 913, Column 492:
@@ -1043,7 +1044,7 @@ outstanding amount is ￿10.00.
That should be "£10.00". This is with latest gitweb code (sha:f3f407747c1cce420ae4b4857c4a6806efe38680) and perl v5.10.1. The problem seems to be in gitweb.perl around line 1543. Looks like utf8::is_utf8 returns false, and the conversion "in place" with utf8::decode doesn't seem to work (although it returns success, Firefox doesn't like it). As a workaround I removed the "|| utf8::decode($str)" on the condition and the error is gone, although I'm not sure about the consequences of doing that (I guess it returns part of the content in the fallback encoding; latin1 in this case). Regards, Juan -- Juan J. Martinez Development Manager, MEMSET mail: juan@memset.com web: http://www.memset.com/ Memset Ltd., registration number 4504980. Building 87, Dunsfold Park, Stovolds Hill, Cranleigh, Surrey GU6 8TB, UK.