From: "t0d0r (Todor Dragnev)" Date: 2012-10-16T18:40:51+09:00 Subject: [ruby-core:48022] [ruby-trunk - Bug #7154] For whatever reason \s doesn't match \u00a0. Issue #7154 has been updated by t0d0r (Todor Dragnev). duerst (Martin D��rst) wrote: > My understanding is that this is a feature. See previous post for explanation. I hope somebody can provide the feedback to http://stackoverflow.com/questions/2588942/convert-non-breaking-spaces-to-spaces-in-ruby. My understanding is that: * We are surrounded by Unicode text, most of the Internet pages and documents are UTF8. If the language don't adapt of the surrounding environment it will be replaced by new one, which provides better tools for the real situation. Not all people of the world use english alphabet as a primary language... * We all are humans, reading "white space" for me means white space in the text in that case with \u00a0 I opened hex editor to see whats wrong, I like the simplicity of Ruby and to code less. All good and popular programming languages are oriented to be in help for humans, complexity kill the popularity - did I know someone near you to write Assembler these days? * "String".downcase produce "string", "������������".downcase must produce "������������", but it's not. Ok thats correct for 1.8.x - we don't have multibyte support. But why in 1.9.x I need to use specific libraries to receive a proper results. UnicodeUtils.downcase("������������") works fine... Thanks Stefan Lang. Maybe Ruby wants to become next PHP with 10 methods doing one think? http://www.tnx.nl/php.html. For me(and maybe others) downcase/upcase/\s and similar methods in 1.9.x are useless... Why we have multibyte support without multi language awareness? This is odd from me as a human... * Firefox has a lots of features and now is going to die, because they did't complain with users warnings about memory management... :) ---------------------------------------- Bug #7154: For whatever reason \s doesn't match \u00a0. https://bugs.ruby-lang.org/issues/7154#change-30840 Author: t0d0r (Todor Dragnev) Status: Closed Priority: Normal Assignee: Category: core Target version: ruby -v: 1.9.3p286 The problem is already explained here: http://stackoverflow.com/questions/2588942/convert-non-breaking-spaces-to-spaces-in-ruby I just hit it today. -- http://bugs.ruby-lang.org/