How can i convert a string to unicode(or utf-8)?
is there any built-in php function? if is not how can i write one? please help me.Thanks in advance
convert ascii to unicode
Moderator: General Moderators
Check out these 2 pages:
http://www.php.net/manual/en/ref.iconv.php
http://www.php.net/manual/en/function.iconv.php
http://www.php.net/manual/en/ref.iconv.php
http://www.php.net/manual/en/function.iconv.php
- EvilWalrus
- Site Admin
- Posts: 209
- Joined: Thu Apr 18, 2002 3:21 pm
- Location: Springmont, PA USA
Thanks,
but it is not what i'm searching for .
exactly i want to convert string from one charset to another.(e.g:windows-1256 ->uincode(utf8) )
i have a file that contains all error and warnnig messages that written by windows-1256 charset and now i want to convert all my project pages encoding to unicode(utf8) and must rewrite all messages.i want a better and automatic way to avoid of rewriting.
Thanks for any useful help or suggestion
but it is not what i'm searching for .
exactly i want to convert string from one charset to another.(e.g:windows-1256 ->uincode(utf8) )
i have a file that contains all error and warnnig messages that written by windows-1256 charset and now i want to convert all my project pages encoding to unicode(utf8) and must rewrite all messages.i want a better and automatic way to avoid of rewriting.
Thanks for any useful help or suggestion
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK