![]() In the image you can see an "encoder," a person responsible for encoding and decoding messages. You can play with one translator online here. This system was invented around 1837 and it allowed, with only two symbols or signals, the whole alphabet to be encoded. With those two symbols, you represent a simple English alphabet. You have two symbols or ways to produce a signal (short and long). Morse code is very simple in its definition. We can learn from a simpler process before we had computers: Morse code. ![]() The process for transforming strings to bits is called character encoding.īut character encoding doesn't only belong to the era of computers. But your computer doesn't understand "strings." It only understands bits: 1s and 0s. Sometimes you process them as input, sometimes you display them as output. In every programming language, you work with strings. So what is a "character encoding" anyway? By the end, you'll be able to understand and fix these errors much more easily. You'll learn how character encodings work and how they're implemented in Ruby. It's less likely that you've understood what the exception means. It's very likely that you've seen a Ruby exception like UndefinedConversionError or IncompatibleCharacterEncodings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |