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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -