|
|
EnglishArtBusiness Computers Games Health Home Internet Kids & teens Recreation Reference Science Shopping Society Sports FrançaisArtBusiness Divertissement Enfants & ados Informatique Internet Jeux Maison Référence Santé Science Shopping Société Sports Register Membership Links Help About ![]() |
How to remove accents in PHP ?
Here is a nice function that can help you to remove every accent in a text. It can be useful to build a url that works on a server running an old PHP version or to convert a text from UTF-8 to ISO-8859-1 format. function replace_accents($string)
By the way, as UTF-8 should be the most used format in the future, it is strongly recommanded to code all your pages in this format. guest-91e551 (2009-09-15 18:40:01) Let iconv handle it <?php
Iconv manual at php.net: http://us2.php.net/manual/en/function.iconv.php ficgs Suggestions en.kioskea.net/faq/sujet-1005-deleting-accents-with-php webxadmin.free.fr/article/remove-accents-from-string-with-php-284.php www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_2088 www.faqts.com/knowledge_base/view.phtml/aid/32273/fid/1 forums.b2evolution.net/viewtopic.php?t=5192 www.hotscripts.com/listing/remove-letter-accents-from-text/ ficgs More suggestions This is a collaborative page, you may change the order of these suggestions by registering, then clicking the icons before the titles. www.scriptingblog.com/php-and-mysql/remove-letter-accents-from-text/39 codex.wordpress.org/Function_Reference/remove_accents web-dev-tip.blogspot.com/2007/02/remove-accents-from-strings-using.html webscripts.softpedia.com/script/Snippets/Removing-accents-in-NET-2-0-26394. www.techniconseils.ca/en/scripts-remove-accents-ruby.php www.advancescripts.com/detailed/16860.html aspn.activestate.com/ASPN/Mail/Message/ruby-talk/3709919 www.webdeveloper.com/forum/showthread.php?t=92690 forum.springframework.net/showthread.php?t=1071 www.velocityreviews.com/forums/t293027-function-for-removing-accents.html bytes.com/groups/net/689193-how-remove-accents-umlaut www.comscripts.com/sources/php.remove-accents.4.html www.freedownloadmanager.org/downloads/remove_accents_sql_info/ comox.textdrive.com/pipermail/wp-svn/2006-July/001685.html issues.civicrm.org/jira/browse/CRM-1439 www.ooblick.com/weblog/2007/01/28/removing-accents-in-strings/ www.zen-cart.com/forum/showthread.php?t=34989 snipplr.com/all/tags/accents/ www.unix.com/shell-programming-scripting/95859-remove-accents-symbols-sed.h forums.macosxhints.com/showthread.php?t=31622 friendsofed.infopop.net/4/OpenTopic?a=tpc&s=989094322&f=5283032876& www.java2s.com/Tutorial/Java/0220__I18N/UseNormalizertoRemoveAccents.htm forums.aptana.com/viewtopic.php?f=20&t=8234
[Games online]
[Last topics]
[Glossary]
[Help]
[Membership]
[About]
[Social network] [Hot news] [Discussions] [Seo forums] [Meet people] [Directory] |
|
![]()
You comment I follow : Links included in comments will be "dofollow" if your post is not an obvious spam, comments are published instantly. Write upside down to your contacts ! (works with Facebook, Twitter, MSN, Yahoo, MySpace, Hi5, Bebo, Youtube...) |