{"thread":{"id":"2492","subject":"Re: GIT character codecs","startedAt":"2005-11-14T06:31:25Z","lastAt":"2005-11-14T07:42:46Z","messageCount":2,"participants":["Marco Costalba","Matthias Urlichs"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"11760","messageId":"20051114063126.27817.qmail@web26306.mail.ukl.yahoo.com","threadId":"2492","inReplyTo":null,"subject":"Re: GIT character codecs","fromName":"Marco Costalba","fromEmail":"mcostalba@yahoo.it","sentAt":"2005-11-14T06:31:25Z","receivedAt":"2005-11-14T06:31:25Z","isPatch":false,"sender":{"key":"mcostalba@gmail.com","avatar":null},"body":"Matthias Urlichs wrote:\n\n>Hi, Junio C Hamano wrote:\n>\n>>I suspect you could just take the default from LANG and LC_CTYPE\n>>to cover 98% of the cases, and to cover the rest 2% the\n>>problematic cases have a per-window override menu.\n>\n>\n>Or, if you want to be super-flexible, just try to decode as UTF-8.\n>Success? fine -- otherwise use whatever your application's default is\n>set to, or your local encoding (which may of course also be UTF-8), or\n>fall back to 8859-15.\n>\n\nHow it is possible to test for success?\n\nThe codec could see everything decodable, but It's only from the context,\ni.e. the user who reads, that it is possible to realize it's the wrong codec.  \n\nAnyhow, as I posted previous in this thread, qgit-0.97.2 now has a codec selector\n as a persistent setting, defaulting to local codec.\n\n\n  Marco\n\n\n\n\t\t\n__________________________________ \nYahoo! FareChase: Search multiple travel sites in one click.\nhttp://farechase.yahoo.com\n"},{"id":"11761","messageId":"20051114074246.GP27727@kiste.smurf.noris.de","threadId":"2492","inReplyTo":"20051114063126.27817.qmail@web26306.mail.ukl.yahoo.com","subject":"Re: GIT character codecs","fromName":"Matthias Urlichs","fromEmail":"smurf@smurf.noris.de","sentAt":"2005-11-14T07:42:46Z","receivedAt":"2005-11-14T07:42:46Z","isPatch":false,"sender":{"key":"matthias@urlichs.de","avatar":"https://gravatar.com/avatar/2708905af227313eba6f2b2ae0f7d0259b5ac5d71baef58fe5a13c699ce0bbf0?d=mp&s=160"},"body":"Hi,\n\nMarco Costalba:\n> >Or, if you want to be super-flexible, just try to decode as UTF-8.\n> >Success? fine -- otherwise use whatever your application's default is\n> >set to, or your local encoding (which may of course also be UTF-8), or\n> >fall back to 8859-15.\n> \n> How it is possible to test for success?\n\nUTF-8 decoding does NOT always succeed.\n\nIn fact, there is no other 8-bit encoding which decodes as valid UTF-8,\ngiven real-world text.\n\n> The codec could see everything decodable, but It's only from the\n> context, i.e. the user who reads, that it is possible to realize it's\n> the wrong codec.  \n> \nTrue in general, but not with UTF-8 (or ASCII, for that matter ;-).\n\n-- \nMatthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de\nDisclaimer: The quote was selected randomly. Really. | http://smurf.noris.de\n - -\nYou can fool the people about many things, but only a fool would be foolish\nenough to fool the people about money.\n\t\t\t\t\t-- Italo Bombolini\n"}]}