[#70843] Re: [ruby-cvs:58952] hsbt:r51801 (trunk): * lib/rubygems: Update to RubyGems HEAD(fe61e4c112). — Eric Wong <normalperson@...>
[email protected] wrote:
3 messages
2015/09/17
[ruby-core:70676] [Ruby trunk - Bug #11511] Problem with cyrillic letter И
From:
xiro@...
Date:
2015-09-07 12:59:42 UTC
List:
ruby-core #70676
Issue #11511 has been updated by [email protected] [email protected]. converted file to utf-8 set up comment # encoding: UTF-8 this does not help.=20 please help how to solve a problem. ---------------------------------------- Bug #11511: Problem with cyrillic letter =D0=98 https://bugs.ruby-lang.org/issues/11511#change-54068 * Author: [email protected] [email protected] * Status: Open * Priority: Normal * Assignee:=20 * ruby -v: ruby 2.0.0p643 (2015-02-25) [i386-mingw32] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- I have problem dealing with the =D0=98 letter. '=D0=98'.encoding #>ASCII-8BIT '=D0=98'.force_encoding('ASCII-8BIT').encode('utf-8') #> UndefinedConver= sionError: "\xC8" from ASCII-8BIT to UTF-8 '=D0=98'.force_encoding('cp1251').encode('utf-8')[0].ord #> 1048 '=D0=98'.force_encoding('cp1251').encode('utf-8') #> "=EF=BF=BD?" 1048.chr #> "=EF=BF=BD?" (why so= strange output?) This issue is blocker for me. --=20 https://bugs.ruby-lang.org/