<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-09-28 18:54 GMT+03:00 Robert Smith <span dir="ltr"><<a href="mailto:spamfree@wansecurity.com" target="_blank">spamfree@wansecurity.com</a>></span>:<br><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>Here is the output to the browser (broken):</div><div><br></div><div><div>{</div><div> "1" : {</div><div> "client_id" : "1123",</div><div> "name" : "WANSecurity, K.K.",</div><div> "address" : "æ ±äº¬éƒ½æ¸‹è°·åŒºä¸ŠåŽŸï¼’âˆ’ï¼”ï¼˜âˆ’ï¼‘ï¼’ ã ¨ã‚ˆä»£ã€…æœ¨ä¸ŠåŽŸã‚³ãƒ¼ãƒ ï¼ƒï¼’ï¼ ï¼‘",</div><div> "id" : "1"</div><div> }</div><div>}</div></div><div><br></div></div></div></blockquote><div>...</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>Is this the expected behavior?</div><div></div></div></div></blockquote></div><div class="gmail_extra"><br></div>I think, it is. I am almost sure, your data is encoded correctly, but browser does not show it correctly. 'application/json' should be always encoded in utf-8, but browser may assume it being Latin-1 (or iso8859-1).<br><br>You could try requesting with curl and look, what you get. I got correct output with your conf.</div><div class="gmail_extra"><br></div><div class="gmail_extra">And you may read about same issue here too:</div><div class="gmail_extra"><a href="https://github.com/PerlDancer/Dancer2/issues/995">https://github.com/PerlDancer/Dancer2/issues/995</a><br clear="all"><div><br></div><div>If you need it to show up correctly in browser too, you may set header yourself "Content-type: application/json;charset=utf-8"</div><div><br></div><div><br></div><div>Wbr,</div>-- <br><div>Kõike hääd,<br><br>Gunnar</div>
</div></div>