Page 1 of 1
convert ascii to unicode
Posted: Sun Sep 07, 2003 12:16 am
by maldar
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
Posted: Sun Sep 07, 2003 10:21 am
by DuFF
Posted: Sun Sep 07, 2003 3:42 pm
by maldar
Thanks,
I did already check the pages you mentioned, but i need a simple function that embded in my project library files and do it for me without any extra installation.
Posted: Sun Sep 07, 2003 8:10 pm
by EvilWalrus
utf8_encode() exists... no addtional libraries needed.
Posted: Mon Sep 08, 2003 4:12 am
by maldar
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
Posted: Tue Sep 09, 2003 8:53 am
by maldar
could any one help me to solve this problem
Thanks
Posted: Tue Sep 09, 2003 9:28 am
by twigletmac
Because there are already functions available you are unlikely to find anyone wanting to reinvent the wheel and code them in PHP.
If you just need to convert your own project pages locally why not install the required libraries to do it?
Mac
Posted: Tue Sep 09, 2003 9:36 am
by maldar
thus, more detail or an example on using utf8_encode() please.
i still have problem working it
Thanks