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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:55:24+00:00 2026-05-17T16:55:24+00:00

I have been looking thoroughly through the Web and I cannot seem to find

  • 0

I have been looking thoroughly through the Web and I cannot seem to find a table with those kind of conversions. The ones I find have some mistakes and are not too reliable, so I have looked for some official table or alike, but unfortunately I haven’t.. so here I am..

As mentioned in the title, what I want to do is for instance, know what does “ñ” stand for (this one I already know.. “ñ”), but not only for Spanish characters, but others (I already know the Polish ones).

Main problem is I have a string in PHP which sometimes may come as for instance “eñe” (which is ok) and others as “eñe”.. and in the lattest I should be able to change it to “eñe” so it is readable.. but if it is ok I do not want to change it. In order to do this, I was using utf8_decode function, but in case the string is readable, it will still change the “ñ” to “■” (but white).. so that is why I cannot always decode the string, and if I use the mb_detect_encoding function, I will always get “UTF-8” as a response.. and it is not so helpful..

Once I know all of the utf8 bit chars written as for instance “ñ” for “ñ”, “Ź” for “Ź”, etc., I plan to do a function which will basically replace one to another.. which is sort of the same thing that the utf8_decode does.. unless someone here has a better solution!

Thanks in advance!
Greetings!

  • 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-17T16:55:24+00:00Added an answer on May 17, 2026 at 4:55 pm

    Why do you want to do this? Do you want to recover corrupted data or so?

    It should really not be done as part of usual business code flow. All you need to do is to ensure that all layers of your webapp is using UTF-8 properly. The PHP source, the HTTP response header and body, the DB table, the DB connection, et cetera. See also PHP UTF-8 cheatsheet.

    If you actually want to do this as an one-time task to recover corrupted data, then it’s good to know that the corrupted data in your question indicates UTF-8 data which is incorrectly been stored or displayed as ISO-8859-1. You just need to read the data as ISO-8859-1 and write as UTF-8. One time. Then do it the right way.

    As an evidence, the ñ (Unicode Character ‘LATIN SMALL LETTER N WITH TILDE’ (U+00F1)) exist in Unicode (UTF-8, a multi-byte encoding) of bytes 0xC3 and 0xB1. When those bytes are encoded using a single-byte encoding like ISO-8859-1, then the 0xC3 becomes à and the 0xB1 becomes ±. See also the ISO-8859-1 codepage layout.

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

Sidebar

Related Questions

I have been looking up about LocalStorage, however I cannot seem to find an
I have been looking through some MFC code and i came across this expression.
I have been looking for the error for a long time, but cannot find
I have been looking over the web for this but I can't seem to
I have been looking through the archives but can't find a solution that works,
I have been looking throughout the system but I cannot find it. When I
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
I have been looking online to find documentation for the function in QTP and
I have been looking into AWS spot instances for some jobs however instead of
I have been looking into backbone.js and I can't seem to figure out how

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.