Discuss Scratch
- Discussion Forums
- » Show and Tell
- » Text Encoder & Decoder
- ScratchRunsExe
-
Scratcher
12 posts
Text Encoder & Decoder
What is it?
Is an encoder and decoder that works with more than 100000 characters. The purpose of it is to make cloud variables with text and/or cloud lists!
How does this work?
It includes two blocks:
Instead of converting the characters to numbers and then joining them, this project converts the text to decimal base using modified operators (to handle big numbers correctly). These are the meanings of the numbers:
Why should I use this?
Because most of text encoders only supports latin alphabet and few characters.
Resources:
Project: https://scratch.mit.edu/projects/370118844
FAQ, Troubleshooting, Requests, Contact: Comment in this topic.
Is an encoder and decoder that works with more than 100000 characters. The purpose of it is to make cloud variables with text and/or cloud lists!
How does this work?
It includes two blocks:
encode [Sample Text]::custom // Encodes the text. It converts the text to numbers.
decode (10012178710862414571009346983)::custom // Decodes the text. Convert the numbers to text.
Instead of converting the characters to numbers and then joining them, this project converts the text to decimal base using modified operators (to handle big numbers correctly). These are the meanings of the numbers:
- The first numbers (6 by default) are the numbers of the greatest unicode of the letters of the text plus one. For example:
“Sample Text” greatest unicode is 120 (+ 1 equals 121 and the limit is 195500, so it puts the number as 000120. But, in order not to confuse it as 120 again, it adds 100000 to that number), so the code will start with 100121.
- The rest of the numbers are the text encoded itself, it takes the base as the first 6 numbers (that why those numbers are very important to decode the text)
Why should I use this?
Because most of text encoders only supports latin alphabet and few characters.
encode [Привет мир!]::custom // 10109181227464872621039371991918573181And it will always try to keep the code simple and shorter. And data will not get corrupted (unless you change a number).
encode [你好世界!]::custom // 1652821185669540478631070879778
encode [Გამარჯობა მსოფლიო!]::custom // 10731516514167921798505388838726754952685578824971612168114611269083276699
encode [안녕하세요, 월드입니다!]::custom // 15461723842144486986515590134221323191368355036581627015133166463
Resources:
Project: https://scratch.mit.edu/projects/370118844
FAQ, Troubleshooting, Requests, Contact: Comment in this topic.
- ScratchRunsExe
-
Scratcher
12 posts
Text Encoder & Decoder
Update
Request me features replying me.
- Now supports more characters. Including emojis

Request me features replying me.
Last edited by ScratchRunsExe (Jan. 2, 2022 18:31:24)
- Discussion Forums
- » Show and Tell
-
» Text Encoder & Decoder
