Re: #284724: Interpretation of NON-BREAK SPACE
* Frederic Peters [Sat, 12 Feb 2005 13:18:06 +0100]:
> fred@trap:~$ ruby -e 'print "hello world\n"'
> -e:1: Invalid char `\302' in expression
> -e:1: Invalid char `\240' in expression
Just to be fully correct, Ruby needs to be told it's dealing with
UTF-8 in source:
$ ruby -Ku -e 'print "hello world\n"'
-e:1: undefined method `print ' for main:Object (NoMethodError)
--
Adeodato Simó
EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
Russian roulette in bash: ((RANDOM%6)) || rm -rf ~
Reply to: