Encoding detecting php

前端 未结 1 1741
生来不讨喜
生来不讨喜 2021-01-28 04:23

I have fallowing string: Ëè÷íûå âñòðå÷è How to encode this string int UTF-8 file PHP?

I spend all day to get how to do this.

相关标签:
1条回答
  • 2021-01-28 04:52

    I think this is what you are looking for:

    http://www.php.net/manual/en/function.mb-detect-encoding.php

    However, I seem to remember it is quite difficult to detect encoding. On the other hand it is eay to convert if you know the source encoding:

    http://www.php.net/manual/en/function.mb-convert-encoding.php

    0 讨论(0)
提交回复
热议问题