| |

VerySource

 Forgot password?
 Register
Search
View: 852|Reply: 2

Advice on SMS text encoding

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-4 09:00:01
| Show all posts |Read mode
Which elder brother can help me with 8-bit encoding?
Is it possible to send e.g. 140 characters '1' with 8-bit encoding?
If possible give the code?
Thank you
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-8-27 19:30:01
| Show all posts
7, 8bit can only send 140 bytes, for 8bit, if it is a data message, it is called 140 bytes, if it is a Chinese message, it is called 70 characters, and 7bit is called 160 characters.
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-8-27 19:45:02
| Show all posts
When using 8bit to send 1 in English, it must be specified as a data format, and the data format SMS will be garbled after ordinary mobile phones receive it. As long as it is in English, it should be compressed.

The compression method is as follows

The first byte is shifted to the left by 1 bit, the lowest bit is filled with the highest bit of the second byte, and the second byte is shifted to the left by two bits, leaving the lower 2 bits free, so that 8 bytes are compressed into 7 bytes.

3131313131313131
//The original length is 8, the compressed length is 7
B1582C168BC562
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list