Actions
Bug #1204
closedBug in String#force_encoding?
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-02-24 trunk 22579) [i686-linux]
Backport:
Description
=begin
Running the attached test program (on UTF-8 terminal):
$ ruby test.rb
#Encoding:ASCII-8BIT "\xC3\xB6" 2
#Encoding:UTF-8 "ö" 2
#Encoding:ASCII-8BIT "\xC3\xB6" 2
#Encoding:UTF-8 "ö" 1
I don't understand why a.size is 2, especially since b.size is correct. Am I missing something?
=end
Files
Actions
Like0
Like0