From jmfaber at faberix.com Thu Mar 20 10:15:46 2008 From: jmfaber at faberix.com (Jan Faber) Date: Thu, 20 Mar 2008 15:15:46 +0100 Subject: [Rails I18n] How to capitalize UTF8 string without downcasing Message-ID: What is the best way to capitalize the first character of a UTF8 string? String#capitalize downcases the rest of the string which is unacceptable since there can be capitals in the middle of the string. ("see New York".capitalize => "See new york"). Just picking off the first byte and capitalizing that is also not an option since the first character can be a multibyte UTF-8 character. The only thing I can think of so far is either using Ruby 1.9 or the the Rails multibyte Chars library to split off the first character and then capitalize that and join it back together. Surely there must be a better way for such a common problem? -- Posted via http://www.ruby-forum.com/. From costel333 at gmail.com Sat Mar 22 06:43:40 2008 From: costel333 at gmail.com (Asdas Safasf) Date: Sat, 22 Mar 2008 11:43:40 +0100 Subject: [Rails I18n] Win MoNeY Online Message-ID: <85c42ac2dcf61d6c78e5626a27078d20@ruby-forum.com> Make money online:the first thing you have to do is to enter: http://bux.to/?r=costel333 register then start making money by clicking on surf ads and visit sites from the list for 30s, for each site that you visit you receive 0.01$.The secret for making serious money is to gather referrals which are users that register on bux.to using the link you gave them...so for each site they visit both you and them win these money......Make notice that this is one of the few sites that really pay you the money you earn...all you need is a VISA card....good luck...PS: if you want to know a good trick of how to make money easier take my messenger id:costel333.. -- Posted via http://www.ruby-forum.com/.