From: Brian Candler Date: 2010-12-17T05:43:28+09:00 Subject: Re: do your bit for my mental health - how to find the difference between two strings? Iain Barnett wrote in post #968914: > I'm going to look into Rack Request and > Response and perhaps patch them to enforce it there I think that would be dangerous: (1) The Rack spec already defines ASCII-8BIT for the body. It doesn't define the return encoding from Rack::Util.parse_query, but you'd be changing from one undocumented behaviour to another, which would break apps which expect it how it is today. (2) How would you choose the encoding? Using the HTTP Content-Type header? But that refers to the body, not to query parameters like GET /foo?param=bar Anyway, I'd say the fundamental problem you're seeing is that a==b but sqlite3(a) != sqlite3(b), which can be demonstrated independently of Rack. So I think sqlite3 is really where the fix is required. -- Posted via http://www.ruby-forum.com/.