From: Wayne Brissette Date: 2013-01-08T20:37:41+09:00 Subject: Re: gsub with multibyte characters I fixed it! I found an interesting trick on stack-overflow. What I ended up doing was mystr.force_encoding("BINARY").gsub!(0x92.chr, "'") I did have to open the problem file in a hex editor to verify the hex character that was causing issues, but forcing the encoding in the MRI seemed to do the trick. I wonder why macruby didn't have this sort of issue though. Wayne