Iconv character set options (//ignore, //translit) not supported
----------------------------------------------------------------

                 Key: JRUBY-867
                 URL: http://jira.codehaus.org/browse/JRUBY-867
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 0.9.8
         Environment: OS X, 10.4.9 Intel core 2 duo (macbook pro)
            Reporter: Nick Plante
            Priority: Minor


Trying to convert from 'ascii/ignore//translit' to some other character set, 
Iconv under JRuby doesn't seem to recognize the translit (allow 
transliteration) and ignore (ignore conversion errors) options (appended to the 
character type string as demonstrated). Raises 
java.nio.charset.IllegalCharsetNameException. See stack trace:

java.nio.charset.IllegalCharsetNameException: ascii//ignore//translit

Charset.java:285:in `java.nio.charset.Charset.checkName'
Charset.java:459:in `java.nio.charset.Charset.lookup2'
Charset.java:438:in `java.nio.charset.Charset.lookup'
Charset.java:497:in `java.nio.charset.Charset.forName'
Charset.java:285:in `java.nio.charset.Charset.checkName'
Charset.java:459:in `java.nio.charset.Charset.lookup2'
Charset.java:438:in `java.nio.charset.Charset.lookup'
Charset.java:497:in `java.nio.charset.Charset.forName'
Charset.java:285:in `java.nio.charset.Charset.checkName'
Charset.java:459:in `java.nio.charset.Charset.lookup2'
Charset.java:438:in `java.nio.charset.Charset.lookup'
Charset.java:497:in `java.nio.charset.Charset.forName'
Charset.java:285:in `java.nio.charset.Charset.checkName'
Charset.java:459:in `java.nio.charset.Charset.lookup2'
Charset.java:438:in `java.nio.charset.Charset.lookup'
Charset.java:497:in `java.nio.charset.Charset.forName'
Charset.java:285:in `java.nio.charset.Charset.checkName'
Charset.java:459:in `java.nio.charset.Charset.lookup2'
Charset.java:438:in `java.nio.charset.Charset.lookup'
Charset.java:497:in `java.nio.charset.Charset.forName'
app/models/question.rb:4:in `call'
app/controllers/questions_controller.rb:58:in `transaction'
app/controllers/questions_controller.rb:58:in `create'
app/controllers/questions_controller.rb:60:in `create'

Same iconv method call works fine under normal Ruby 1.8.5 VM.

-- 
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