{"thread":{"id":"5732","subject":"gitweb commitdiff output error","startedAt":"2006-09-28T07:20:01Z","lastAt":"2006-10-03T09:01:38Z","messageCount":2,"participants":["Dongsheng Song","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"27875","messageId":"4b3406f0609280020m43695511qb5da5a3394ad6417@mail.gmail.com","threadId":"5732","inReplyTo":null,"subject":"gitweb commitdiff output error","fromName":"Dongsheng Song","fromEmail":"dongsheng.song@gmail.com","sentAt":"2006-09-28T07:20:01Z","receivedAt":"2006-09-28T07:20:01Z","isPatch":false,"sender":{"key":"dongsheng.song@gmail.com","avatar":null},"body":"Hi,\n\nWhen the file enconding is not utf8, the gitweb commitdiff output\nerror for non-ascii characters.\n\nCan I do iconv for commitdiff  ?\n\nDongsheng\n"},{"id":"28138","messageId":"eft8sm$un0$1@sea.gmane.org","threadId":"5732","inReplyTo":"4b3406f0609280020m43695511qb5da5a3394ad6417@mail.gmail.com","subject":"Re: gitweb commitdiff output error","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-10-03T09:01:38Z","receivedAt":"2006-10-03T09:01:38Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Dongsheng Song wrote:\n\n> When the file enconding is not utf8, the gitweb commitdiff output\n> error for non-ascii characters.\n> \n> Can I do iconv for commitdiff  ?\n\nYou can, most probably, but perhaps not as something that is universal.\nIn git you can set commit message encoding, but git does not remember\n(and has no set place where to save it) information about file encoding.\nYou would have either use default UTF-8 encoding of gitweb page, and do\niconv equivalent, by using \"encoding\" module and/or \"Encode\" module,\nand by opening diff with \"-|:encoding(utf16)\" (where of course you have\nto put correct encoding). And you would have to set default file encoding\n(and perhaps filename encoding) somewhere.\n\nStill, it wouldn't help for example diff of encoding _change_...\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"}]}