Closed fpt closed 10 years ago
Calling addStory with data containing multi-byte characters (e.g. Japanese) fails in HTTP 400 status. String.length is not preferable because it does not match encoded length in bytes in those cases.
Please refer to this question for more information. http://stackoverflow.com/questions/9864662/how-to-get-the-string-length-in-bytes-in-nodejs
Thank you for your contribution!
Calling addStory with data containing multi-byte characters (e.g. Japanese) fails in HTTP 400 status. String.length is not preferable because it does not match encoded length in bytes in those cases.
Please refer to this question for more information. http://stackoverflow.com/questions/9864662/how-to-get-the-string-length-in-bytes-in-nodejs