patkua@work

UTF-8 fix for winstone doesn’t work for JSON

In my last post, I wrote about ensuring international codes work when streaming content using winstone. I found that that didn’t work so well with JSON. Not only did you need to specify the character encoding, but you needed to make sure the content type was correct.

In this case, make sure the contentType is set to application/json; charset=UTF-8

Exit mobile version