From: Urabe Shyouhei Date: 2008-03-31T12:06:37+09:00 Subject: Re: String#dump vs String#inspect Hi, Daniel Berger wrote: > I looked at the implementations for String#dump and String#inspect and > they are very similar (in 1.8.6 at least). In fact, I can't find a > difference between them. Does anyone have a case where they aren't the > same? Cases when that string contains Japanese characters. For String#inspect, these characters are printed as is. While for String#dump, they are escaped using backslashes. In 1.9 situations might differ for future, as 1.9 strings have their own encodings.