From: Austin Ziegler Date: 2004-12-15T01:04:35+09:00 Subject: Re: Unicode in Ruby and a Ruby Reference On Tue, 14 Dec 2004 19:12:18 +0900, Giulio Piancastelli wrote: > How a literal Unicode character can be inserted in a Ruby String? I > recall Java having the \uNNNN escaping, for example, but I wasn't able > to find a similar mechanism for Ruby. (On the other hand, I'm aware of > escaping for octal and hex character codes, e.g. \NNN and \xNN.) \u4321 is a UTF-16BE encoding, so you would need to know the equivalent UTF-8 encoding, e.g., \xe4\x8c\xa1. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca