From: martin@... (Martin v. Loewis) Date: 2001-12-05T09:43:52+09:00 Subject: [ruby-talk:27499] Re: Unicode string for the standard library ? TAKAHASHI Masayoshi writes: > Ruby's string is byte sequence, but Ruby's regex supports > UTF-8 string. For example, /./u matches one UTF-8 > character(one code unit). How can I do Unicode ranges? This won't work str = "soci\303\251t\303\251" p str.gsub(/[\303\251-\303\254]/u,"?") I expect to get one replacement character per Unicode character, but actually get two of them. Regards, Martin