jruby1.6.1 can't run file with utf-8 
-------------------------------------

                 Key: JRUBY-5783
                 URL: http://jira.codehaus.org/browse/JRUBY-5783
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9.2
    Affects Versions: JRuby 1.6.1
         Environment: D:\script\jruby>jruby -v
jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (Java HotSpot(TM) Client VM 1
.6.0_12) [Windows XP-x86-java]
            Reporter: coldtest
            Assignee: Thomas E Enebo


I write the jruby script as fellow:

# encoding: UTF-8

require 'java'
require 'iconv'

ic_gbk=Iconv.new("gbk","utf-8");
puts ic_gbk.conv("中国");

and the script is saved as UTF-8 ,but when I run the command in cmd ,I meet a 
error :
D:\script\jruby>jruby test.rb
SyntaxError: test.rb:1: \273Invalid char `\273' ('??') in expression

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to