{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/18856","labels_url":"https://api.github.com/repos/akka/akka/issues/18856/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/18856/comments","events_url":"https://api.github.com/repos/akka/akka/issues/18856/events","html_url":"https://github.com/akka/akka/issues/18856","id":115122721,"number":18856,"title":"Akka-http: The first character of utf-8 strings in json is not unmarshalled properly","user":{"login":"moricard","id":2237175,"avatar_url":"https://avatars.githubusercontent.com/u/2237175?v=3","gravatar_id":"","url":"https://api.github.com/users/moricard","html_url":"https://github.com/moricard","followers_url":"https://api.github.com/users/moricard/followers","following_url":"https://api.github.com/users/moricard/following{/other_user}","gists_url":"https://api.github.com/users/moricard/gists{/gist_id}","starred_url":"https://api.github.com/users/moricard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moricard/subscriptions","organizations_url":"https://api.github.com/users/moricard/orgs","repos_url":"https://api.github.com/users/moricard/repos","events_url":"https://api.github.com/users/moricard/events{/privacy}","received_events_url":"https://api.github.com/users/moricard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akka/akka/labels/t:http","name":"t:http","color":"CCCCCC"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/akka/akka/milestones/7","html_url":"https://github.com/akka/akka/milestones/duplicate","labels_url":"https://api.github.com/repos/akka/akka/milestones/7/labels","id":658384,"number":7,"title":"duplicate","description":"Used to collect duplicate issues so they don't end up in reports.","creator":{"login":"bantonsson","id":805830,"avatar_url":"https://avatars.githubusercontent.com/u/805830?v=3","gravatar_id":"","url":"https://api.github.com/users/bantonsson","html_url":"https://github.com/bantonsson","followers_url":"https://api.github.com/users/bantonsson/followers","following_url":"https://api.github.com/users/bantonsson/following{/other_user}","gists_url":"https://api.github.com/users/bantonsson/gists{/gist_id}","starred_url":"https://api.github.com/users/bantonsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bantonsson/subscriptions","organizations_url":"https://api.github.com/users/bantonsson/orgs","repos_url":"https://api.github.com/users/bantonsson/repos","events_url":"https://api.github.com/users/bantonsson/events{/privacy}","received_events_url":"https://api.github.com/users/bantonsson/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":81,"state":"open","created_at":"2014-05-14T08:00:46Z","updated_at":"2015-11-04T19:34:39Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-11-04T18:54:03Z","updated_at":"2015-11-04T19:59:57Z","closed_at":"2015-11-04T19:34:06Z","body":"When the first character of a string property in a json object is accented (é, à, è, etc...), it does not get unmarshalled properly. Given the following test:\r\n\r\n```scala\r\nclass Utf8UnmarshallingSpec extends FlatSpec with Matchers with ScalaFutures with ScalatestRouteTest with DefaultJsonProtocol {\r\n  override def testConfigSource = \"akka.loglevel = WARNING\"\r\n\r\n  it should \"unmarshal utf-8 strings with the first accented character\" in {\r\n    import json._\r\n    val jsonArray = \"[\\\"électronique\\\"]\".parseJson\r\n    val entityFuture = Marshal(jsonArray).to[MessageEntity]\r\n    val entity = Await.result(entityFuture, 1 second)\r\n\r\n   // This case fails\r\n    whenReady(Unmarshal(entity).to[List[String]]) {\r\n      case head :: Nil => head shouldBe \"électronique\"\r\n    }\r\n\r\n    whenReady(Unmarshal(entity).to[String]) {\r\n      case string => string shouldBe \"[\\\"électronique\\\"]\"\r\n    }\r\n  }\r\n\r\n  it should \"unmarshal utf-8 strings with any accented character\" in {\r\n    import json._\r\n    val jsonArray = \"[\\\"dépôt\\\"]\".parseJson\r\n    val entityFuture = Marshal(jsonArray).to[MessageEntity]\r\n    val entity = Await.result(entityFuture, 1 second)\r\n\r\n    whenReady(Unmarshal(entity).to[List[String]]) {\r\n      case head :: Nil => head shouldBe \"dépôt\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThe first assertion fails with the following message: `\"[Ã�]lectronique\" was not equal to \"[é]lectronique\"`"},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/153846514","html_url":"https://github.com/akka/akka/issues/18856#issuecomment-153846514","issue_url":"https://api.github.com/repos/akka/akka/issues/18856","id":153846514,"user":{"login":"moricard","id":2237175,"avatar_url":"https://avatars.githubusercontent.com/u/2237175?v=3","gravatar_id":"","url":"https://api.github.com/users/moricard","html_url":"https://github.com/moricard","followers_url":"https://api.github.com/users/moricard/followers","following_url":"https://api.github.com/users/moricard/following{/other_user}","gists_url":"https://api.github.com/users/moricard/gists{/gist_id}","starred_url":"https://api.github.com/users/moricard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moricard/subscriptions","organizations_url":"https://api.github.com/users/moricard/orgs","repos_url":"https://api.github.com/users/moricard/repos","events_url":"https://api.github.com/users/moricard/events{/privacy}","received_events_url":"https://api.github.com/users/moricard/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T19:59:57Z","updated_at":"2015-11-04T19:59:57Z","body":"I can confirm that forcing the spray-json version to `\"io.spray\" %% \"spray-json\" % \"1.3.2\"` in my build works. Thanks for the quick response."}}