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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:20:43+00:00 2026-05-22T15:20:43+00:00

I am trying to GET values from url and I have ended up with

  • 0

I am trying to GET values from url
and I have ended up with a problem in IE
but all other browsers it works great.

This is my issue:

If text is some UTF-8 text as example:

$x=$_GET['txt'];
echo $x;

I got

???????

only in IE

still same problem and this is my all code

 <?php
header('Content-Type: text/html; charset=utf-8');
$x=$_GET['id'];
echo $x;
?>

try with this word in id

سسسسسسس

  • 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-22T15:20:44+00:00Added an answer on May 22, 2026 at 3:20 pm

    You can put this meta tag inside the <head> if it’s a charset issue (as an alternative to using header inside PHP):

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    

    UPDATE

    If you’re not encoding the value of x from the URL you should do something like:

    <a href="page.php?x=<?php echo urlencode($string)?>">Link</a>
    

    Using your sample text (سسسسسسس), once that’s encoded using urlencode it should like this:

    %D8%B3%D8%B3%D8%B3%D8%B3%D8%B3%D8%B3%D8%B3
    

    I got it working by adding a charset meta tag and doing a simple urldecode:

    echo urldecode($_GET['x']);
    

    See screenshot on IE:
    enter image description here

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

Sidebar

Related Questions

I have this code - which is trying to get variables from the URL
I'm trying to get the values from a pointer to a float array, but
I am trying to get coordinates from GPS (this actually gives the values for
I'm learning mysql and have been trying to get this working, but an error
I am trying to get the values from an arraylist. I have the User
I'm trying to get values from nsdata class and doesn't work. here is my
I am trying to get values from a data set. My function has to
I am trying to get the values from an HTML table row. When I
I am trying to get double values from file using fscanf function. I am
I am trying to get the privacy values (from privacy table) for photos that

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.