Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // convert any string of any type to UTF-8
- function decode2utf8($str) {
- return (mb_detect_encoding($str)=='UTF-8')?$str:utf8_encode($str);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement