From: Richard Conroy Date: 2010-01-29T03:11:14+09:00 Subject: Re: gsub not working to replace a 'Chinese' Charater. --000325554696954ff2047e3d7111 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jan 28, 2010 at 5:58 PM, Roger Pack wrote: > Ryan Smith wrote: > > gsub not works for me when replace 'DBCS'(double byte character set) > > character, using last version ruby 1.8.6 > > Maybe try 1.9? > -r Its an option, but a better strategy is to outline what you are trying to achieve. You should state where the Chinese text is coming from (database, text file, binary file (e.g. excel), shell, UI, stdin), what encoding it is in (or what encoding you think it is in), and share the source of your ruby code (just the relevant bits, like your KCODE attribute, Iconv usage etc. -- http://richardconroy.blogspot.com --000325554696954ff2047e3d7111--