On Wed, Sep 3, 2014 at 10:28 AM, Mark Hahn <[email protected]> wrote: > What happens if I convert an entire buffer to a string using toString and > the end of the buffer only has a partial character encoding? Will it just > ignore the extra byte(s)? (This is what I want). Or will it have garbage > at the end of the string or throw an exception?
It will have garbage at the end. More precisely, the partial character gets replaced with the replacement character, U+FFFD. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAHQurc9bQKx4KVAa-giAXWKb9TsHgn%3DyQKWp_0SGeZOBSfiZFA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
