问题 I've seen lots of places say: The maximum number of characters is 255. where characters are ASCII. Is there a technical reason for that? EDIT: I know ASCII is represented by 8 bits and so there're 256 different characters. The question is why do they specify the maximum NUMBER of characters (with duplicates) is 255. 回答1: I assume the limit you're referring to is on the length of a string of ASCII characters. The limit occurs due to an optimization technique where smaller strings are stored