Fork me on GitHub
#yada2015-06-30
>
ordnungswidrig08:06:20

Would you like to have a peek at my attempt to cut the helper functions in liberator into more general use libraries? I’d push something alpha-ish then.

malcolmsparks08:06:31

yes definitley

malcolmsparks08:06:42

woke up this morning, found a bug in Ring.,..: https://github.com/ring-clojure/ring/issues/212

malcolmsparks08:06:54

(or at least I think it's a bug)

ordnungswidrig08:06:05

Wow. That’s a hot topic. I think URI encoding has been debated for ages simple_smile Amazon uses encoding sniffing which pretty clever:

ordnungswidrig08:06:31

Note the embedded „ÅMÅŽÕÑ“ string (lost by percent encoding)

malcolmsparks08:06:33

oh dear, I didn't want to wake the dead on this one

malcolmsparks08:06:42

is URI encoding really that controversial?

ordnungswidrig08:06:23

It’s a valid use case to query with non-ASCII values. What do you suggest else? I would not necessarily adhere to the request content-type but in the end you need use the acutal charset the browser sent.

malcolmsparks08:06:46

it's quite rare that you use 'query' parameters when sending content, but still valid

ordnungswidrig08:06:05

I might want to google myself and my name is Müller.

ordnungswidrig08:06:32

The above SO post point to RFC 2396

ordnungswidrig08:06:43

> For original character sequences that contain non-ASCII characters, however, the situation is more difficult. Internet protocols that transmit octet sequences intended to represent character sequences are expected to provide some way of identifying the charset used, if there might be more than one [RFC2277]. However, there is currently no provision within the generic URI syntax to accomplish this identification. An individual URI scheme may require a single charset, define a default charset, or provide a way to indicate the charset used.

ordnungswidrig08:06:12

Ok, sorry for the noise: here we go: RFC3987 IRIs: http://tools.ietf.org/html/rfc3987

ordnungswidrig08:06:53

Hahaha: "If the IRI is written on paper, read aloud, …“ made my day.

ordnungswidrig08:06:01

Another link for the readling list on that topic: http://www.w3.org/International/articles/idn-and-iri/

ordnungswidrig08:06:15

HTML5 is pretty clear on how to submit and parse form data with query strings: http://www.w3.org/TR/html5/forms.html#application/x-www-form-urlencoded-encoding-algorithm