This is a heavily interactive web application, and JavaScript is required. Simple HTML interfaces are possible, but that is not what this is.
Post
Versun
versun.me
did:plc:wuf46guonf7qyxtx6suovw4w
Twitter的中文字符长度的计算
我的 CMS 在博客交叉发布到 X 上时,如果内容较多老是会因为字数限制的原因而发布失败。
研究了下发现 X 对非英文字符的计算和其它平台不一样,在Mastodon和Bluesky上,一个中文字符均算做一个字符数,但 X 却算做 2 个字符数。
[mastodon][bluesky]
[twitter/x]
所以,我添加了下面2个函数,一律将非ASCII的字符算...
Read more: https://versun.me/blog/Calculating-Chinese-Character-Length-for-Twitter
2025-02-18T22:09:53.060Z