I'm using the php 'file' command to read the contents of an ASCII text
file to a variable. The original text file contains some accented and
special characters. The problem arises when I echo this variable: the
accented characters are messed up. And not only accented characters, for
example, the special characters ª is printed as ª. What can I do to
correct this issue? I have tried, without success, to use the 'setlocale'
command.
TIA,
Bernhard Enders.
file to a variable. The original text file contains some accented and
special characters. The problem arises when I echo this variable: the
accented characters are messed up. And not only accented characters, for
example, the special characters ª is printed as ª. What can I do to
correct this issue? I have tried, without success, to use the 'setlocale'
command.
TIA,
Bernhard Enders.
Comment