utf 8 - How do I output UTF8 Lithuanian characters using php? -
i'm trying decode this, it's not working.
<?php ini_set('default_charset','utf-8'); header('content-type: text/html; charset=utf-8'); echo utf8_decode("Ä…Äęėįšųūž"); ?>
this should display "ąčęėįšųūž" prints "�?č�?�?įšųūž". how can fix it? please me set utf-8 file charset, etc.
the string echoing might partially utf-8 of characters wrong. correct string:
ÄÄÄÄįšųūž
utf8_decode converts string encoded in utf8 iso 8859-1. guess that's not need.
check source encoding , choose function need convert utf8.
Comments
Post a Comment