Project

General

Profile

Actions

Bug #1833

closed

Class name encoding

Added by tmat (Tomas Matousek) over 15 years ago. Updated over 13 years ago.

Status:
Closed
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

Actions

Also available in: Atom PDF

Like0
Like0Like0