From: James Edward Gray II Date: 2007-06-17T13:11:11+09:00 Subject: Re: Ruby Changes Its Mind About Non-Word Characters On Jun 16, 2007, at 2:41 PM, Vincent Isambart wrote: > It is because the � and � characters are not in ISO-8859-1. The characters were in UTF-8, which is why I asked iconv to convert them. Don't take my word for it though, I gave you the source so you could double-check me. > The ? character has the same code in both UTF-8 and ISO-8859-1 as it > is an ASCII character... My text editor and terminal don't agree: Firefly:~/Desktop$ cat saved_as_utf8.txt saved_as_latin1.txt �� ?? Firefly:~/Desktop$ ruby -e 'p ARGF.read' saved_as_utf8.txt saved_as_latin1.txt "\302\253\302\273\n\253\273\n" James Edward Gray II