Regexp match /.../n against to UTF-8 string

e$B0J2<$N$h$&$K!"[email protected],I=8=$Ne(B n e$B%*%W%7%g%s$K4X$7$Fe(B
e$B7Y9p$,=P$^$9!#e(B

% ./ruby -ve '# -- coding:us-ascii --
/a/ = ~ “\xc2\x81”.force_encoding(“utf-8”)

ruby 1.9.0 (2008-01-26 revision 15248) [i686-linux]
-e:2: warning: regexp match /…/n against to UTF-8 string

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:33399] regexp match /…/n against to UTF-8
string”
on Jan.26,2008 12:02:23, [email protected] wrote:
| e$B0J2<$N$h$&$K!"[email protected],I=8=$Ne(B n e$B%%W%7%g%s$K4X$7$Fe(B
| e$B7Y9p$,=P$^$9!#e(B
|
| % ./ruby -ve '# -
- coding:us-ascii -*-
| /a/ = ~ “\xc2\x81”.force_encoding(“utf-8”)
| ’
| ruby 1.9.0 (2008-01-26 revision 15248) [i686-linux]
| -e:2: warning: regexp match /…/n against to UTF-8 string

e$BD>$7$F$_$^$7$?e(B(e$B$?$V$se(B)e$B!#e(B

e$BF1;~$K!"$I$&$J$C$FM_$7$$$+$N%F%9%H$bDI2C$7$^$7$?!#e(B
e$BDI2C$7$?%F%9%H$NCf$K<:GT$9$kJ,$,$"$j$^$9$,!"e(B[ruby-dev:33400]
e$B$GD>$k$N$G$O$J$$$+$H4|BT$7$F$$$^$9!#e(B

e$B$=$l$G$O!#e(B

In article [email protected],
“U.Nakamura” [email protected] writes:

e$BD>$7$F$_$^$7$?e(B(e$B$?$V$se(B)e$B!#e(B

e$BD>$C$F$$$k46$8$G$9!#e(B

e$BF1;~$K!"$I$&$J$C$FM_$7$$$+$N%F%9%H$bDI2C$7$^$7$?!#e(B
e$BDI2C$7$?%F%9%H$NCf$K<:GT$9$kJ,$,$"$j$^$9$,!"e(B[ruby-dev:33400]
e$B$GD>$k$N$G$O$J$$$+$H4|BT$7$F$$$^$9!#e(B

[ruby-dev:33400] e$B$rE,MQ$7$?>uBV$G;n$7$F$_$^$7$?!#e(B

e$B$R$H$DH/@8$9$kNc30$,0c$&$H$3$m$rD>$7$?$i!"e(B
test/ruby/test_m17n.rb e$B$O$-$l$$$KDL$k$h$&$K$J$j$^$7$?!#e(B

[ruby-dev:33400] e$B$OF~$l$?$$$s$G$9$,!"?75,%a%=%C%I$NDI2C$,I,e(B
e$BMW$J$N$G!"$^$D$b$H$5$s$NN;2r$,M_$7$$$H;W$C$F$$$^$9!#e(B

e$B$J$*!"?75,e(B YARV e$BL?Na$K$9$l$P?75,%a%=%C%I$O$$$i$J$/$J$j!“Ev=ie(B
e$B$O$=$l$r9M$($F$$$?$N$G$9$,!”[email protected]$5$s$K;_$a$i$l$?$H$$e(B
e$B$&7P0^$,$"$j$^$9!#e(BJIT
e$B$r$d$k$?$a$KL?Na$r8:[email protected]$=$&$G!#e(B

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:33484] Re: regexp match /…/n against to UTF-8
string”
on Jan.29,2008 09:19:24, [email protected] wrote:
| [ruby-dev:33400] e$B$rE,MQ$7$?>uBV$G;n$7$F$_$^$7$?!#e(B
|
| e$B$R$H$DH/@8$9$kNc30$,0c$&$H$3$m$rD>$7$?$i!"e(B
| test/ruby/test_m17n.rb e$B$O$-$l$$$KDL$k$h$&$K$J$j$^$7$?!#e(B

e$B$"!<!“e(BRegexpErrore$B$K$7$F$”$C$?$d$D$,!"$"$N%Q%C%A8e$O%3%s%Q%$%ke(B
e$B;~$K8!=P$G$-$k$h$&$K$J$C$Fe(BSyntaxErrore$B$K$J$k$s$G$9$+$M!#e(B
e$B$=$l$O$=$l$GG<[email protected]$G$9!#e(B

| [ruby-dev:33400] e$B$OF~$l$?$$$s$G$9$,!"?75,%a%=%C%I$NDI2C$,I,e(B
| e$BMW$J$N$G!"$^$D$b$H$5$s$NN;2r$,M_$7$$$H;W$C$F$$$^$9!#e(B

e$B$h$m$7$/$*4j$$$7$^$9!#e(B

e$B$=$l$G$O!#e(B

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