From: Matthias Urlichs <smurf@smurf.noris.de>
To: Marco Costalba <mcostalba@yahoo.it>
Cc: git@vger.kernel.org
Subject: Re: GIT character codecs
Date: Mon, 14 Nov 2005 08:42:46 +0100 [thread overview]
Message-ID: <20051114074246.GP27727@kiste.smurf.noris.de> (raw)
In-Reply-To: <20051114063126.27817.qmail@web26306.mail.ukl.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]
Hi,
Marco Costalba:
> >Or, if you want to be super-flexible, just try to decode as UTF-8.
> >Success? fine -- otherwise use whatever your application's default is
> >set to, or your local encoding (which may of course also be UTF-8), or
> >fall back to 8859-15.
>
> How it is possible to test for success?
UTF-8 decoding does NOT always succeed.
In fact, there is no other 8-bit encoding which decodes as valid UTF-8,
given real-world text.
> The codec could see everything decodable, but It's only from the
> context, i.e. the user who reads, that it is possible to realize it's
> the wrong codec.
>
True in general, but not with UTF-8 (or ASCII, for that matter ;-).
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
You can fool the people about many things, but only a fool would be foolish
enough to fool the people about money.
-- Italo Bombolini
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-11-14 7:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-14 6:31 GIT character codecs Marco Costalba
2005-11-14 7:42 ` Matthias Urlichs [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-11-13 20:52 Marco Costalba
2005-11-13 8:14 Marco Costalba
2005-11-13 10:21 ` Junio C Hamano
2005-11-14 4:47 ` Matthias Urlichs
2005-11-13 17:51 ` Linus Torvalds
2005-11-12 12:37 Marco Costalba
2005-11-12 22:00 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051114074246.GP27727@kiste.smurf.noris.de \
--to=smurf@smurf.noris.de \
--cc=git@vger.kernel.org \
--cc=mcostalba@yahoo.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox