PHP Turn special characters to normal ones

Posted on 2009-04-15
Last Modified: 2012-05-06
Hello experts,

I have a website written in html and php.
There I have form, which among other things requests the user to type in their name and first name.
I have to do some further processing with these data.
The problem is that many users have special characters in their names, and that causes errors in my further processings.
Is there a php function to turn the special characters into normal ones? (i.e. á to a)
I use UTF-8.

Thanks for your help
Question by:arthrex
    LVL 5

    Accepted Solution

    you could do this with trtr

    Open in new window

    LVL 48

    Expert Comment

    LVL 5

    Expert Comment

    iconv will not convert special chars to normal ones, it can convert them to utf-8, but that's not what was requested

    Author Closing Comment


    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now