Note: string.printable includes all of string.whitespace. Characters are segmented into different ranges within the ASCII table: Each single character has a corresponding code point, which you can think of as just an integer. The various categories outlined represent groups of characters. Don’t worry if you’re shaky on the concept of bits, because we’ll get to them shortly. Each character can be encoded to a unique sequence of bits. So what is a more formal definition of a character encoding?Īt a very high level, it’s a way of translating characters (such as letters, punctuation, symbols, whitespace, and control characters) to integers and ultimately to bits.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |