Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6628525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:08:29+00:00 2026-05-25T22:08:29+00:00

I am using php and getting some utf8 string from Javascript. I try to

  • 0

I am using php and getting some utf8 string from Javascript.

I try to remove accent… by using a lot of difference function but still have troubles…
With iconv() I have wrong accent removing, with some encode() I have nothing…

When I use serialize(mystring), my wrong char look like followings:
xE3xA0 with A0 depending of the char.

It there any exhaustive map I can use ?
Is there another method ?

(I am under php 5.2 and no real control on the server so I cannot use intl/Normalize)


Edit :
code like this doesnt works (otherwise it would be ugly but efficient for short term)

 $string = mb_ereg_replace('(À|Á|Â|Ã|Ä|Å|à|á|â|ã|ä|å)','a',$string);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:08:30+00:00Added an answer on May 25, 2026 at 10:08 pm

    This should do it:

    iconv("UTF-8", "ASCII//TRANSLIT", $text)
    

    If this does not work for you, see “How do I remove accents from characters in a PHP string?“

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting some info from a https web server using PHP plus cURL.
When using the PHP Tidy Library (More Specifically, The tidy_repair_string function) I keep getting
I'm trying to do some really basic AJAX using PHP & jQuery, but for
I'm trying to extract some information from a webpage using php cURL+preg_match or any
I am getting some info from an RSS. <?php $dom = new DOMDocument; libxml_use_internal_errors(TRUE);
Ok here is the situation (using PHP/MySQL) you are getting results from a large
I get a random row from a mysql-server using php. I then display some
I'm getting the following using the PHP client on my server (connecting via FBML).
I am using this php code: exec(unrar e file.rar,$ret,$code); and getting an error code
I am using HTML Purifier in my PHP project and am having trouble getting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.