<br><div class="gmail_quote">On Fri, Jun 19, 2009 at 6:23 AM, <span dir="ltr"><<a href="mailto:seasprocket@gmail.com">seasprocket@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><br>The problem was fixed by calling utf8::decode on the data prior to sending back via ajax. BUT WHY?<br><br>I am using the JSON view to render ajax responses, and it sets the charset header correctly to UTF-8. Of course, even when you decode, perl still represents as "internal" utf8. But why should this be necessary?<br>
</div></blockquote><div><br></div></div><br>I had exactly the same problem and solution using Catalyst::Controller::REST with the JSON serializer. Still in my list of 'big mysteries to be solved'. <br><br>I hadn't discovered Catalyst::Plugin::Unicode back then, I wonder if using it would help, haven't tried myself yet.<br>
<br>Cheers<br>Francesc<br>