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 7999369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:29:11+00:00 2026-06-04T15:29:11+00:00

I need to normalize a string such as quée and I can’t seem to

  • 0

I need to normalize a string such as “quée” and I can’t seem to convert the extended ASCII characters such as é, á, í, etc into roman/english versions. I’ve tried several different methods but nothing works so far. There is a fair amount of material on this general subject but I can’t seem to find a working answer to this problem.

Here’s my code:

#transliteration solution (works great with standard chars but doesn't find the 
#special ones) - I've tried looking for both \x{130} and é with the same result.
$mystring =~ tr/\\x{130}/e/;

#converting into array, then iterating through and replacing the specific char
#( same result as the above solution )
my @breakdown = split( "",$mystring );

foreach ( @breakdown ) {
    if ( $_ eq "\x{130}" ) {
        $_ = "e";
        print "\nArray Output: @breakdown\n";
    }
    $lowercase = join( "",@breakdown );
}
  • 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-06-04T15:29:13+00:00Added an answer on June 4, 2026 at 3:29 pm

    1) This article should provide a fairly good (if complicated) way.

    It provides a solution to converting all accented Unicode characters into the base character + accent; once that is done you can simply remove the accent characters separately.


    2) Another option is CPAN: Text::Unaccent::PurePerl (An improved Pure Perl version of Text::Unaccent)


    3) Also, this SO answer proposes Text::Unidecode:

    $ perl -Mutf8 -MText::Unidecode -E 'say unidecode("été")'
      ete
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to be able to convert user input to [a-z] roman characters ONLY
I need to take a string, and shorten it to 140 characters. Currently I
Need help to convert code from asp control to input type to fetch file
I need to import tabular data into my database. The data is supplied via
I have a table with some duplicate rows that I want to normalize into
I need to smooth some simulated data, but occasionally run into problems when the
I need to calculate a list of very small numbers such as (0.1)^1000, 0.2^(1200),
I need to compare 2 strings as equal such as these: Lubeck == Lübeck
I have an input string which has csv values. Eg., 1,2,3 I would need
I have a number of collections of classes which I need to refactor into

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.