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

  • SEARCH
  • Home
  • 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 6681385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:35:03+00:00 2026-05-26T04:35:03+00:00

ok, this is bugging me. i got a phonebook DB from a client where

  • 0

ok, this is bugging me.
i got a phonebook DB from a client where some of the results containts accented names,

and by some i mean mainly the city field,or category.
which makes my query results look ridiculous.

DB Charset: UTF-8

for example:

CompanyName | City | etc…

DemoCompany | Hauptstraße 18 | Whatever

DemoCompany | Hauptstrabe 18 | Whatever

the DB has around 360k records…. so manual checking is not an option.
anyone has an idea how can i find the accented/not accented values ?
something like a duplicate column check…

EDIT:
when i query the table, i get results for both, that is not the problem.
the problem is, when i display the results, some are displayed with accent, and some without.

EDIT:

CREATE TABLE `enc` (
  `company` varchar(255) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `postcode` varchar(255) DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `Telefon1` varchar(255) DEFAULT NULL,
  `Telefon2` varchar(255) DEFAULT NULL,
  `Telefon3` varchar(255) DEFAULT NULL,
  `Telefon4` varchar(255) DEFAULT NULL,
  `Telefon5` varchar(255) DEFAULT NULL,
  `Branche1` varchar(255) DEFAULT NULL,
  `Branche2` varchar(255) DEFAULT NULL,
  `Branche3` varchar(255) DEFAULT NULL,
  `Branche4` varchar(255) DEFAULT NULL,
  `Branche5` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8$$
  • 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-26T04:35:04+00:00Added an answer on May 26, 2026 at 4:35 am

    You can start with something like this, that will show if there are rows that are exact duplicates of each other (and their count):

    SELECT 
        CompanyName, City, etc... 
      , COUNT(*) AS DuplicateCount
    FROM 
        TableToCheck
    GROUP BY
        CompanyName, City, etc...            --- all columns except the Primary Key
    HAVING 
        COUNT(*) > 1
    

    If you want to find only duplicate addresses, you do something like this:

    SELECT 
        Address
      , COUNT(*) AS DuplicateCount
    FROM 
        TableToCheck
    GROUP BY
        Address                     
    HAVING 
        COUNT(*) > 1
    

    Reading your question again, I think I misunderstood what you are asking. If you don’t want to find duplicates (as there are not) but you want to find accented words (and replace them with unaccented perhaps):

    The table you have now is probably using a case insensitive collation (like utf_general_ci or utf_unicode_ci), so you could copy the table into a new one that has same charset but a case sensitive collation, like utf_bin.

    You could then create a list of accented characters and then write a query to check for this list in fields of your new table (this will be real slow):

    SELECT nt.*
    FROM NewTable AS nt 
      JOIN AccentedList AS al
    WHERE nt.field LIKE CONCAT('%', al.AccentedChar, '%')
    GROUP BY nt.PK
    

    or run a query to REPLACE() those characters, like 'ß' with 'ss' for example.

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

Sidebar

Related Questions

This question has been bugging me for some time. I always picture launching my
This is a question that's been bugging me for some time now: In photoshop/GIMP,
I've got a, I think fairly easy question, but this is bugging me for
This has been bugging me for some time now. My problem is the following.
I've got this question that's been bugging me and my vast and unfathomable intellect
Ok, this is bugging me, and I just can't figure out what is wrong...
This has been bugging me for more than two days now, so i thought
This one has been bugging me for a while now. Is there a way
This Jquery problem has been bugging me for a while now. I developed a
This is something that's been bugging me for many years: why most online services

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.