Here is my doubt.
If I had this
$str = 'variável';
and I wanna use uft8_decode, the output is
variável
But if I had
$str = "variável"
I get
vari?vel
when I use utf8_decode
This is a problem when I send a file .txt, for example, that is already decoded, the output is "vari?vel" if I use utf8_decode
.
The string $str
is only an analogy.
This is for a system where students send their homework that is a function in matlab, .m file, actually. A student sent the file for Linux and I found this problem.
I hope that I have been clear.