threads / discuss / 5732

gitweb commitdiff output error

Subject: gitweb commitdiff output error

## tl;dr

2 messages between Sep 28, 2006 and Oct 3, 2006.

replies: 1people: 2as markdown or json

Jakub Narebski· Oct 3, 2006, 09:01 UTC · re: Dongsheng Song · lore

Re: gitweb commitdiff output error

Dongsheng Song wrote:
> When the file enconding is not utf8, the gitweb commitdiff output
> error for non-ascii characters.
> 
> Can I do iconv for commitdiff  ?

You can, most probably, but perhaps not as something that is universal. In git you can set commit message encoding, but git does not remember (and has no set place where to save it) information about file encoding. You would have either use default UTF-8 encoding of gitweb page, and do iconv equivalent, by using "encoding" module and/or "Encode" module, and by opening diff with "-|:encoding(utf16)" (where of course you have to put correct encoding). And you would have to set default file encoding (and perhaps filename encoding) somewhere.

Still, it wouldn't help for example diff of encoding _change_...
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

← back to recent threads