go-ozzo / ozzo-routing

An extremely fast Go (golang) HTTP router that supports regular expression route matching. Comes with full support for building RESTful APIs.
MIT License
455 stars 51 forks source link

JSON default charset? #36

Closed kolkov closed 7 years ago

kolkov commented 7 years ago

Hi! How to set default charset UTF-8 for json writer? by default I see:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 16 May 2017 16:55:58 GMT
Transfer-Encoding: chunked

https://youtrack.jetbrains.com/issue/WEB-24771

qiangxue commented 7 years ago

As you wrote in the jetbrains issue, JSON should be encoded in unicode. Why would you set the charset in the header?

kolkov commented 7 years ago

Thanks! I think that is a JetBrains bug!