Actions
Bug #11511
closedProblem with cyrillic letter И
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0p643 (2015-02-25) [i386-mingw32]
Description
I have problem dealing with the И letter.
'И'.encoding #>ASCII-8BIT
'И'.force_encoding('ASCII-8BIT').encode('utf-8') #> UndefinedConversionError: "\xC8" from ASCII-8BIT to UTF-8
'И'.force_encoding('cp1251').encode('utf-8')[0].ord #> 1048
'И'.force_encoding('cp1251').encode('utf-8') #> "�?"
1048.chr #> "�?" (why so strange output?)
This issue is blocker for me.
Files
Actions
Like0
Like0Like0Like0Like0