Re: #284724: Interpretation of NON-BREAK SPACE
Alastair McKinstry wrote:
> As this is not a shell-specific problem, I was really wondering if the
> scripting languages had encountered it, particularly the 'we support
> Unicode' ones... like Perl and Python...
fred@trap:~$ python -c 'print "hello world"'
File "<string>", line 1
print "hello world"
^
SyntaxError: invalid syntax
fred@trap:~$ perl -e 'print "hello world\n";'
Unrecognized character \xC2 at -e line 1.
fred@trap:~$ ruby -e 'print "hello world\n"'
-e:1: Invalid char `\302' in expression
-e:1: Invalid char `\240' in expression
Frederic
Reply to: