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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:32:10+00:00 2026-06-12T11:32:10+00:00

When i send this perfect square character: 25² And retrieve it in another page

  • 0

When i send this perfect square character:

25²

And retrieve it in another page using utf8_decode i get (as expected):

25²

Now i want to do the same thing with square roots. When i send this square root:

√225

And retrieve (_$GET) it using utf8_decode as before i get:

?255

Note: i would prefer a method that will solve this when i retrieve the value (like √225) and not a method that will force me to change the initial representation of it.

Edit: I thought i was using mysql but i’m not. sorry for misleading. this is the script i use to retrieve the value:

if (isset($_GET['json'])){  
  $json = urldecode($_GET['json']);
  $roots = json_decode($json, true);
  $arrList = utf8_decode(implode(",,,", $roots['nameList']));
  print_r($arrList)
}
  • 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-12T11:32:12+00:00Added an answer on June 12, 2026 at 11:32 am

    The utf8_decode function converts a string from UTF-8 to latin1. The square root symbol is not available in latin1, so utf8_decode substitutes it with a question mark. This doesn’t happen with ² because it does exist in latin1, in position 0xB2. (You can check which characters are available in the page of latin1 in Wikipedia)

    A possible solution is removing the call to utf8_decode and leave the text as UTF-8, but then you have to make sure the rest of your code can handle UTF-8.

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

Sidebar

Related Questions

I want to send this url from an android class to my servlet. I
I want to send this hex packet: 00 38 60 dc 00 00 04
I have a WCF web service. I want to send email from this service.
UPDATE: I managed to get this thing working! Turns out, you NEED to send
I need to send this XML <?xml version=1.0 encoding=UTF-8?> <gate> <country>NO</country> <accessNumber>1900</accessNumber> <senderNumber>1900</senderNumber> <targetNumber>4792267523</targetNumber>
I need to serialize ArrayList<String> arr=new ArrayList<String>(); on server and then send this array
In my sms-script I read in the text to send with this subroutine: my
Tag this with send-me-the-codez if you will. I've been asked to assist in putting
I send data in this way: <form method=post enctype=text/plain action=Func> And I have a
i'm trying to send mail in this way: Properties props = new Properties(); props.setProperty(mail.transport.protocol,

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.