From: Eric Hodel Date: 2005-07-01T05:35:29+09:00 Subject: Re: Escape sequences for unicode chars? On 30 Jun 2005, at 13:15, Michael Schuerig wrote: > I'm using unicode in a Rails app and there are some cases where I'd > like > to use escape sequences for characters instead of the literal > characters. > > Case in point is Horizontal Ellipsis, hex 2026. I thought this > would be > \x2026, but Ruby only takes the first two characters following \x into > account. Is there some way to make Ruby cooperate? You need to encode it into UTF8 or similar: $ ruby -e 'puts "\342\200\246"' � $ -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04