Project

General

Profile

Bug #1833

Class name encoding

Added by tmat (Tomas Matousek) over 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32]
Backport:
[ruby-core:24600]

Description

=begin
Encoding of class name is not preserved.

#encoding: UTF-8

class Cß
end

p Cß.name #=> "C\xC3\x9F"
p Cß.name.encoding #=> #Encoding:ASCII-8BIT

I expect the encoding of the name to be UTF-8.
=end

Also available in: Atom PDF