i 需要从案文领域改写。 如何做到这一点?
Reason: The text on the textbox will be sent by SMS to the client, and I ve limited the text to 160chars but if i put special chars like @€£‰¶÷‰‰€£@ it will be larger than 256 bytes (that s the size of an sms).
因此,需要从256份改成tes的案文中删除,并将结果改为正常的果园。
<><>>Example:
var charsleft = toChars(256 - toBytes(mystring));
EDIT:
REASON to be on Javascript: i have an line saying something like this "XXX chars left"