Issue Type: Bug Bug
Affects Versions: JRuby 1.7.4
Assignee: Thomas E Enebo
Attachments: utf16le.txt
Created: 01/Aug/13 12:42 PM
Description:

If you run the following code under MRI or JRuby 1.7.3 the encoding results will be UTF-8. If you run this using JRuby 1.7.3 the encoding result is UTF-16LE.

Encoding.default_internal = Encoding::UTF_8
file = File.join(File.expand_path(File.dirname(_FILE_)), 'utf16le.txt')
data = "" 'rb:bom|utf-8')

{ |file| file.read }

puts "data encoding #

{data.encoding}

"

I have attached the test file.

Project: JRuby
Priority: Critical Critical
Reporter: Tom Beauvais
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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