Re: #284724: Interpretation of NON-BREAK SPACE
On Sat, Feb 12, 2005 at 01:18:06PM +0100, Frederic Peters wrote:
> fred@trap:~$ perl -e 'print "hello world\n";'
> Unrecognized character \xC2 at -e line 1.
0xc2 is LATIN CAPITAL LETTER A WITH CIRCUMFLEX... Sounds like you tried to
give UTF-8 to Perl without the "use utf-8" pragma to tell it your script is
in UTF-8 (the non-breaking space is encoded in UTF-8 as 0xc2 0xa0). However,
on my system it breaks out with the same error even with "use utf8;" on top,
so I guess it's broken anyhow (and a bug against perl?).
With "use utf8;" I can have all sorts of odd national characters in variable
names etc., though, but I don't really know how useful that is ;-)
/* Steinar */