Permalink
Browse files

Merge pull request #58 from ferd/master

Fixing issue 57
  • Loading branch information...
ferd committed Aug 19, 2011
2 parents e6d144a + a146778 commit 9c6eea7d3c3b47fe534f33919beef5720bccde44
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/socketio_transport_polling.erl
@@ -296,7 +296,7 @@ send_message(Message, Req, Index, ServerModule, Sup) ->
send_message_1(Headers, Message, Req, Index, ServerModule) ->
Headers0 = [{"Content-Type", "text/javascript; charset=UTF-8"}|Headers],
- Message0 = binary_to_list(jsx:term_to_json(list_to_binary(Message), [{strict, false}])),
+ Message0 = unicode:characters_to_list(jsx:format(jsx:term_to_json(list_to_binary(Message), [{strict, false}]))),
Message1 = "io.JSONP["++Index++"]._(" ++ Message0 ++ ");",
apply(ServerModule, respond, [Req, 200, Headers0, Message1]).

0 comments on commit 9c6eea7

Please sign in to comment.