⬆️ ⬇️

We push 280 characters in one tweet

Where did the idea come from



As you know, twit'ut can be Unicode characters, and, as you know, there are quite a lot of them.

Therefore, I thought, would it be possible to encode two Latin characters in one Unicode?





Dumb about the mechanism



About html


There are many special characters in html that have certain codes.

Example:

&#CODE; and compliance:



About ASCII


When I read an article on Wikipedia about ASCII, I noticed that the characters (marked columns and rows) are enough to form a message. And their number does not exceed 100: 6 * 16 = 96.



Binds two events together


It turns out that two Latin characters can be encoded with one html character!

The & # 98 27; - these are coded Latin characters corresponding to one Unicode character!

If you write a small converter, you can send a tweet, the number of characters of which will be 2 times larger.



We write a small javascript converter and test it.



After a little podug, the converter was born.

You can test it at:

http://lucius.0fees.net/bigtwit.html

Convert the classic phrase: “Hello, World!”:

࿤ ᶗổ⓯ỉᶏ⏪ - that's what happens.

Now google the 280-character phrase (with English tight) and post it to Twitter.



Here you can look at the tweet that matches the phrase:

This is the most common type of lightning. Since it’s striking the ground. Cloud-to-ground lightning is a lightning discharge between a cloud and a ground.


')

Afterword



Why is it necessary?


Suddenly we are on an inhabited island, and we can only send one tweet, because the battery emits the last breath.



Maybe shake archiver?


Since there are not enough characters, the necessary efficiency can be achieved only on specially formed phrases.



Somehow not very optimally encoded, it was still possible to work


This is true, but I did not develop the idea, because it is in general useless.

Plus, it’s not tested enough, so glitches can be observed.



PS



Do not scold the code for cattle, as I could - and wrote.

PS2



It turns out that under Windows, the characters are mostly replaced by small squares, so there will be a problem with copying the message to tweet.

In general, under Linux messages will look like this:

Source: https://habr.com/ru/post/138465/



All Articles