You may want to try analyzing the encoding using something like mb_detect_encoding()
.
Decoding strings on PHP: Data treats UTF-8 Bytes as Windows-1252
-
24-09-2022 - |
Pergunta
I am getting data from a web API which has a strange encoding. I am using PHP and can't seem to decode input strings. I seem to be having this problem, which explains what's going but doesn't really help me figure out how to fix it. Can anyone help? Thanks!
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow