playframework/Play20 — pull request #924 by nraychaudhuri (2013-06-05 18:52:54+00:00)
Title: Should work with Content-Type header like: text/xml; charset="utf-8"

this is the same issue you had for Play 1.0:
http://play.lighthouseapp.com/projects/57987/tickets/1361-error-parsing-quoted-charset-in-http-header

In that ticket they say that "spec does not include quote in charset definition" but that is not true in my opinion:
media-type = type "/" subtype *( ";" parameter )
( http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7 )

where parameter is defined as
parameter = attribute "=" value
attribute = token
value = token | quoted-string
( http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6 )

So both
text/xml; charset="utf-8"
and
text/xml; charset=utf-8
should be accepted as Content-Type:

https://github.com/playframework/Play20/blob/master/framework/src/play/src/main/scala/play/api/mvc/Http.scala#L164

thanks