These numbers are sent to User2's computer. So it transforms 'hello' into a sequence of numbers 0圆8 0圆5 0圆C 0圆C 0圆F, where each letter uniquely corresponds to a number: h is 0圆8, e is 0圆5, etc. User1's computer doesn't know the meaning of letters. Imagine the User1 sends through the network a message 'hello' to User2. For computers, the letters are just sequences of bits. The difference is that computers don't understand the meaning of letters. Why are you able to understand the meaning of letters? Simply: because you (reader) and me (writer) have an agreement over the association between the graphical symbol (what is seen on the screen) and the English language letter (the meaning). How are you able to read and understand the current article? Simply: because you know the meaning of letters and words as a group of letters. You'll learn also how to apply new ECMAScript 2015 features to solve a part of the difficulties. Then it clarifies how JavaScript works with Unicode and what traps you may encounter. The post explains the basic concepts of Unicode, creating the necessary ground. And let's dive into the wonderful world of abstraction, characters, astrals, and surrogates. Make yourself a tasteful tea or coffee ☕. If you have gaps in understanding Unicode, now is the right time to face it! It's not that hard. some articles have required reading at least 3 times.Īs it turns out, Unicode is a universal and elegant standard, but it may be tough because of a bunch of abstract terms it operates with. There was no way to apply situational solutions.Īfter putting in some effort, reading a bunch of articles - surprisingly it wasn't hard to understand it. My avoidance continued until I faced a problem that required detailed Unicode knowledge. When a programming task required Unicode knowledge, I was searching for a hackable solution for the problem, without a good understanding of what I was doing. This story starts with a confession: I was afraid of Unicode for a long time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |