You are here: Re: Remove all unicode from a string « PHP Programming Language « IT news, forums, messages
Re: Remove all unicode from a string

Posted by Edward Z. Yang on 06/15/07 22:28

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

jerry@mynetserv.com wrote:
> I am trying to use php to remove all unicode from a string. What I am
> seeing it the white question mark with a black diamond. I have tried
> html_entity_decode and preg_replace but had no luck. Any help would be
> greatly appreciated. Thanks!

Try utf8_decode()
<http://us2.php.net/manual/en/function.utf8-decode.php> Note that this
function will replace your Unicode characters with question marks, and
will not convert valid ISO-8859-1 characters.

- --
Edward Z. Yang GnuPG: 0x869C48DA
HTML Purifier <htmlpurifier.org> Anti-XSS HTML Filter
[[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGcxKOqTO+fYacSNoRAny9AJ4my5eKYF4wvVvWTiax7skAuY7PUACfVnJb
94TPMeMTzZUB+zFY8b5ANMc=
=q0TX
-----END PGP SIGNATURE-----

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация