Character encoding not working correctly
Character encoding not working correctly
masinist
Posts: 3Questions: 1Answers: 0
I have a website encoding iso-8859-15, what works correctly.
However, some table data is shown correctly (like ä, ö, ü) and some are wrong (like �).
The default text in both is exactly the same. The table text is read in *.txt files
wamp 3.0.0; Apache 4.2.17; php 5.6.16. Apache default encoding is set to iso-8859-15.
What could be wrong?
This discussion has been closed.
Answers
Can you link to a test page showing the issue please?
Thanks,
Allan
I found a answer to this problem.
*.txt file encoding was different ANSI vs. UTF-8.
Now is a second question.
How to view those both encoding in UTF-8 ?
I guess you would have to change the encoding to UTF-8 in the ANSI file as well. I have lots of text in German, anything else but UTF-8 is a nightmare ...
Check this: https://stackoverflow.com/questions/132318/how-do-i-correct-the-character-encoding-of-a-file
You'll find many posts on this topic everywhere.