'Reliable' SMS Unicode & GSM Encoding in PHP

前端 未结 6 975
梦毁少年i
梦毁少年i 2020-12-08 08:22

(Updated a little)

I\'m not very experienced with internationalization using PHP, it must be said, and a deal of searching didn\'t really provide th

6条回答
  •  不思量自难忘°
    2020-12-08 09:07

    PHP6 will have better unicode support but there are a few functions you can use.

    My first thought was mb_convert_encoding but as you said this will shorten messages to 70 chars - so perhaps you can use this in conjunction with mb_detect_encoding?

    See: Multibyte Functions

提交回复
热议问题