How many characters can i store in 4kb when the characters are in utf-8 encoding ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In UTF-8 characters need between 1 and 4 bytes. So, you can store between 4096 and 1024, respectively, UTF-8 characters in 4KB.
I would assume that in many use cases you can expect that most characters fit into one byte and almost all into 2.