I am getting data from TCP into node.js. The data is in buffer format and looks like:
♣ ? d ?&+?
How can I parse that data into normal strings, eg 12345
Thank you.
Node buffers have a toString method, here's the documentation on it http://nodejs.org/docs/v0.4.2/api/buffers.html#buffer.toString
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With