<br><br><div class="gmail_quote">On Mon, Aug 6, 2012 at 2:52 AM, Richard Boulton <span dir="ltr"><<a href="mailto:richard@tartarus.org" target="_blank">richard@tartarus.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 6 August 2012 09:48, Marius Tibeica <<a href="mailto:mtibeica@gmail.com">mtibeica@gmail.com</a>> wrote:<br>
> Do the serialise method of Document and Query produce a valid utf8 string?<br>
<br>
</div>No, they produce a byte string which may contain any byte values.<br>
<br>
I'm not sure what the node bindings do with these; if there's no byte<br>
type available in node, there should probably be some option to get<br>
the serialised values as a base64 encoded string or something like<br>
that (but such an option doesn't currently exist as far as I know).<br></blockquote><div><br>We'll need to use node Buffer objects, then. <br></div></div>