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
Updated by xiro@inboxdesign.me (xiro@inboxdesign.me xiro@inboxdesign.me) over 8 years ago
converted file to utf-8
set up comment
# encoding: UTF-8
this does not help.
please help how to solve a problem.
Updated by usa (Usaku NAKAMURA) over 8 years ago
- File prompt.jpg prompt.jpg added
How to reproduce?
I could not reproduce with irb.
Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
- Status changed from Open to Feedback
Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
- Status changed from Feedback to Closed
Actions
Like0
Like0Like0Like0Like0