From: "walles (Johan Walles)" Date: 2013-11-08T05:01:09+09:00 Subject: [ruby-core:58229] [ruby-trunk - Bug #9096][Open] Regexp.quote(UTF-8) returns US-ASCII Issue #9096 has been reported by walles (Johan Walles). ---------------------------------------- Bug #9096: Regexp.quote(UTF-8) returns US-ASCII https://bugs.ruby-lang.org/issues/9096 Author: walles (Johan Walles) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN The attached program contains a unit test demonstrating that doing Regexp.quote() on an UTF-8 encoded string returns a US-ASCII encoded string (or at least I think it does...). I would expect Regexp.quote() to return a string with the same encoding as the input string. -- http://bugs.ruby-lang.org/