I am trying to create an array with Danish characters - why the characters are converted to UTF-8 Does PHP output? Apache's httpd.conf? PHP.ini?
// failed $ characters = array_merge (category ("a", "z"), str_split ("ÆØÅ")); // Overview Results: (array) ABCDEFGHIJKLMNOPQRSTUVWXYZÃ † Ã ~ Ã ... // Expected Result: (array) ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ // Works $ character = array_merge (category ("A", "z"), str_split (utf8_decode ("ÆØÅ" "))); // Observation results: (array) ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ
I have tried to set the content type and default charset for the ISO-8859-1 in document type:
Header ('content-type: text / html; charset = ISO-885 9 -1');
ini_set ('default_charset', 'ISO-885 9 -1');
The content type is also set in the HTML document (it is not relevant since it is in the PSP engine before the HPL engine):
< P> & lt; Meta http-equiv = "Type Content" content = "text / html; charset = ISO-885 9-1">
Sorry to answer my own question ..
I solved it by changing ANSI file encoding from UTF-8.
Comments
Post a Comment