iso-8859-16 is supported in C Ruby from commit 33993 (Dec. 9th, 2011), please see
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enc/trans/iso-8859-16-tbl.rb?view=log.

It looks as if you used JRuby. Can you tell us which version?

It may be that JRuby didn't yet implement ISO-8859-16. I have cc'ed the JRuby implementers to get their feedback.

Regards,   Martin.

On 2013/11/10 19:33, Federico Tomassetti wrote:
Hi,
I understood ISO-8859-16 was among the supported encoding but I get this
error:

Encoding::ConverterNotFoundError: code converter not found for
ISO-8859-16
     org/jruby/RubyString.java:7597:in `encode'

On this line:

code = code.encode(internal_encoding) # internal_encoding = 'UTF-8'

I can read the file correctly with:

code = IO.read(path,{ :encoding =>  file_encoding, :mode =>  'rb'}) #
file_encoding = 'ISO-8859-16'

Any thoughts?


--
You received this message because you are subscribed to the Google Groups 
"rails-i18n" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rails-i18n.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to