There is a function on my page that needs to be replaced by ellipsis if the string is too long. Now I use strlen and substr to implement it. I found that the length of intercepted text in Chinese and English is different, resulting in too little interception in Chinese, and the interception in English is the set length. The same. Is there any good way to unify Chinese and English? I am speechless!