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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:08:36+00:00 2026-06-15T22:08:36+00:00

Have a really strange problem with UTF8 characters. I have the following: All my

  • 0

Have a really strange problem with UTF8 characters.

I have the following:

  • All my files are UTF-8

  • I am using (in my form): accept-charset="utf-8"

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

But for some reason when i post UTF8 characters like: ö ä å
And i then echo the $_GET[] the output show: ���

Feels like I’ve tried everything, all help is very welcome! 🙂

  • 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-15T22:08:37+00:00Added an answer on June 15, 2026 at 10:08 pm

    Browsers will send the data in same encoding as you declared to page to be. For a sanity test, run this page:

    <?php
    header("Content-Type:text/html; charset=utf-8");
    $file = basename(__FILE__);
    if( isset( $_POST['data'] ) ) {
        echo $_POST['data'];
    }
    else {
        echo <<<HTML
            <form method="POST" action="$file">
                <input name="data" type="text">
                <input type="submit">
            </form>
    HTML;
    }
    

    Write “äöä” to the form and see if it’s right. If it isn’t, try to check your mbstring ini values for:

    <?php
    
    var_dump(
        ini_get("mbstring.http_input"),
        ini_get("mbstring.http_output"),
        ini_get("mbstring.encoding_translation")
    );
    

    The correct values are:

    string(4) "pass"
    string(4) "pass"
    string(1) "0"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a really strange problem, following attribute of a jsp tag <custom:tag onclick=addBid('<%=
I have a really strange problem. I'm using jQuery 1.7.1 and UI 1.8.17 for
We have a really strange problem in xpages regarding dates, the Notesdocument we have
I have a really strange problem with SQL Server 2008. We have an e-commerce
I have a really strange problem and I'm completely puzzled. I have a piece
I'm having a really strange problem. I have 2 virtual machines running ubuntu 11.4
I've come across a really strange problem. I have written a simple Deck class
I've got a REALLY strange problem - my testers report problems (app is hanging,
I am having some strange problem and its really frustating me. I have a
I have a strange problem with a DataGridView I'm using which is bound to

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.