From: Thomas Thomassen Date: 2009-07-07T22:11:08+09:00 Subject: Re: Ruby 1.8 - character encoding Looking at http://en.wikipedia.org/wiki/ISO-8859-1 There's an extra character code besides the code that equal to the ANSI code. It consist of 3 integers ranging from 0-7. This code can be used in Ruby in conjunction with the escape character: ANSI ISO-8859-1 -------------------- æ - 230 - 230 / 346 ø - 248 - 248 / 370 å - 229 - 229 / 345 Æ - 198 - 198 / 306 Ø - 216 - 216 / 330 Å - 197 - 197 / 305 "\306".length # Code for Æ > 1 Since this code doesn't exist in ANSI it seem to me that Ruby interprets ISO-8859 encoding. But I'm still wondering if this is system dependant... -- Posted via http://www.ruby-forum.com/.