faye/faye — Issue #118: Substitute JSON gem for multi_json
Author: jpignata
Created: 2011-12-26 18:13:45+00:00
State: open

We're trying to use the Ruby Faye client to send data to a node.js Faye server and are having an encoding problem. Essentially, V8 does not support supplementary plane characters so we're splitting emoji into surrogate pairs. Unfortunately this is technically invalid UTF-8 and the JSON gem blows up on it.

If Faye used multi_json our project would default to Yajl which handles surrogates much more easily. I'm happy to patch and test it - figured I'd open this issue first to see if there's interest in doing this.

Thanks.