How to convert a string to utf-8 code in php
php
Solution
use the utf8_encode ( $data )
see its full documentation http://php.net/manual/en/function.utf8-encode.php
Problem
i need a function or a simple algo to help me convert a normal string to utf-8 code ex: string: ``` hello عربي ``` UTF-8 CODE: ``` 68 65 6C 6C 6F 0A 0639 0631 0628 064A 0A ```