scotty-web/scotty — pull request #113 by wfaler (2014-08-25 17:24:08+00:00)
Title: set default json charset to utf-8 to avoid international chars becoming "garbage"

Found a case where the swedish characters "öäå" where rendered as "Ã¶Ã¤Ã¥" because "html", "text" and "json" functions in Scotty didn't set a sensible default charset on the Content-Type, hence lets clients/browsers are left to assume it (probably to "us-ascii").

This seems to be fixed in git for most content types, but json still seems to have no charset set. This pull requests sets it to the same default (and sensible) utf-8 charset as elsewhere.