From: Marnen Laibow-Koser Date: 2010-01-29T03:16:15+09:00 Subject: Re: gsub not working to replace a 'Chinese' Charater. Benoit Daloze wrote: > With ruby 1.9.2dev (2010-01-14 trunk 26319) [x86_64-darwin10.2.0] > "strhanziend" > > It works fine. You need to set encoding with "# encoding: utf-8" at > the top of the file. > In fact, it will complain if not in 1.9.2 > > Ruby 1.8.6 is kind of outdated, but at least I think it works with > "-Ku". Ruby 1.8 isn't outdated. It just doesn't handle multibyte text that well. > > 2010/1/28 Ryan Smith : Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.