Jump to content

translate utf-8 code?


yolop

Recommended Posts

hi

i have this code.

 

=?UTF-8?q?=D7=A0=D7=93=D7=A8=D7=A9=D7=AA_=D7=A4=D7=A2=D7 =95=D7=9C=D7=94_=D7= 9C=D7=94=D7=A4=D7=A2=D7=99=D7=9C_=D7=97=D7=A9=D7=9 1=D7=95=D7=9F_=D7=94 =D7=9E=D7=A9=D7=AA=D7=9E=D7=A9_=D7=91-_FXP=2Eco=2Eil

 

 

and i looking for function in php that can translate me this code ....

who know please?

Link to comment
https://forums.phpfreaks.com/topic/185294-translate-utf-8-code/
Share on other sites

It looks more like Quoted-printable to me. It's a type of encoding commonly used in e-mails. Try quoted_printable_decode().

 

Edit: Then again... you can try some of the decoding functions suggested in the comments of imap_utf8() first, I guess.

Link to comment
https://forums.phpfreaks.com/topic/185294-translate-utf-8-code/#findComment-978149
Share on other sites

It looks more like Quoted-printable to me. It's a type of encoding commonly used in e-mails. Try quoted_printable_decode().

 

Edit: Then again... you can try some of the decoding functions suggested in the comments of imap_utf8() first, I guess.

 

 

<?php

echo quoted_printable_decode('D7=A0');

?>

 

back: D7

 

and

<?php

echo imap_utf8('D7=A0');

?>

back

Call to undefined function imap_utf8()

 

both of them no good..

 

 

Link to comment
https://forums.phpfreaks.com/topic/185294-translate-utf-8-code/#findComment-978157
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.