How many characters can be stored in 4KB?
问题 How many characters can i store in 4kb when the characters are in utf-8 encoding ? 回答1: 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. 回答2: Here is a visual cue how much 1024 or 4096 are. Read @Jon Snyder's message to get a better understanding. 1024 Characters (Assuming Characters have 4 bytes):