Regexp#sourceのencoding

[email protected]>;3OB9-$G$9!#e(B

Regexp#sourcee$B$Ne(Bencodinge$B$,e(BRegexp#encodinge$B$K4X78$J$/e(B
ASCII-8BITe$B$K$J$C$F$$$k$h$&$J5$$,$7$^$9!#e(B

% cat e.rb

-- coding: utf-8 --

re = /e$B$"e(B/
p re.encoding
p re.source.encoding
% ruby-trunk -v e.rb
ruby 1.9.0 (2008-01-25 revision 15237) [i686-linux]
#Encoding:UTF-8
#Encoding:ASCII-8BIT
%

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs