routeros-scripts icon indicating copy to clipboard operation
routeros-scripts copied to clipboard

[feature] UTF8 encoding and join SMSs

Open rchovan opened this issue 4 years ago • 1 comments

Hi, I'm using script for telegram notification, but messages are received without diacritics. Is there a way how to display them correctly ? And 1 long message is distributed as 2 notifications, can it be joined into single notification ?

image

Same behavior is visible in emails too:

image

rchovan avatar Mar 16 '20 12:03 rchovan

I think both of these are not easy to solve.

As for as I know RouterOS is not aware of any encoding, just using ASCII characters. I just added a degree sign (which is not ASCII) in 63ed093340df70c79ecec21396d136a03d869eca. Had to use the UTF-8 hex values... To solve this I would have to maintain character tables for every encoding I want to support, then do the decode and encode within the scripts. I do not think this will happen.

The split SMS bother me as well. A SMS has a maximum length of 160 characters, longer text can be split to several SMS. As far as I know the text for individual split SMS is reduced, instead some control characters for assembly are added. Sadly I can not access these control characters from RouterOS. Reliable assembly of messages from what I have is pretty impossible.

If you have ideas to solve this let me know. Also feel free to contact support for propper support of split SMS.

eworm-de avatar Mar 16 '20 15:03 eworm-de