Maybe here is the problem.
I checked the php manual for utf8_encode function
and it says
| Quote:: |
| utf8_encode -- Encodes an ISO-8859-1 string to UTF-8 |
so $datetime is converted in UTF-8 from ISO-8859-1 [but mai input is in ISO-8859-2 as it should].
So actually what I see on my page is an UTF-8 output of an ISO-8859-2 text "seen" as ISO-8859-1.
Is there a function to convert a string from ISO-8859-2 to ISO-8859-1 before encoding the text in UTF-8 or what should I do.
Even here on this site doesn't appear right.
It is "DuminicĂ" instead of "Duminică" as it should be or "SîmbĂtĂ" instead "Sâmbătă" [and it's not a translation error, I assure you].