[KLUG Programming] Re: [KLUG Members] getting exit code in
bash script
bill
bill at billtron.com
Fri Mar 11 15:45:03 EST 2005
On Fri, 2005-03-11 at 15:37, bill wrote:
> > > Any idea what the weird character is?
> >
> > Not without looking it up. (which I have no desire to do)
> > Maybe some kind of tab or cursor movement code?
On this page:
http://sourceforge.net/mailarchive/message.php?msg_id=5916545
I found this:
The two byte sequence \302\240
is the UTF-8 encoding for the character
known in Tcl-Unicode notation as \u00a0
which is the non-breaking space. When
you write that character to output on
a system with system encoding of
iso8859-1 it gets written as the single
byte \240 which is the same character
in that encoding. Likewise, if you were
to read in the byte \240 on the same
system, Tcl will convert it back to UTF-8
so by the time Tcl sees it again, it will
be the 2-byte sequence \302\240 .
More information about the Programming
mailing list