JSON.stringify(str).length gives invalid byte count #26

Open
coolaj86 opened this Issue Mar 9, 2012 · 0 comments

Projects

None yet

1 participant

@coolaj86
Owner
coolaj86 commented Mar 9, 2012

the solution is to do new Buffer(JSON.stringify(str)).length

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment