Reputation: 5
I have UTF-8 source data and I must to create CSV file which encoded in Windows-1252 character encoding.
I was tried with classic functions, but I haven't well results. It must support Serbian Characters: "čćžšđ" after converting.
Also I was tried to convert to CP1252, ISO-8859-1, ISO-8859-2 with functions: mb_convert_encoding, iconv and iconv_set_encoding.
Have anyone any idea what to try?
Upvotes: 0
Views: 1770
Reputation: 32697
Windows-1252 does not contain Serbian letters, try Windows-1250 instead.
Both mb_convert_encoding()
and iconv()
should work.
Upvotes: 2