Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How convert PHP value from windows-1257 to UTF-8

Tags:

php

windows

utf-8

How convert PHP value from windows-1257 to UTF-8? I tried many ways, but they was not successful. I have lttu�s and I wanna convert this to littūs.

utf8_encode(); 
iconv_set_encoding("windows-1257", "UTF-8");
mb_convert_encoding()

Doesn't work. :(

Can anybody help me?

like image 255
simple Avatar asked Dec 12 '22 22:12

simple


1 Answers

$encoded= iconv ("CP1257","UTF-8", $string)
like image 185
Eds Avatar answered Dec 27 '22 01:12

Eds