Strange! You guys don't have to help.

Source: Internet
Author: User
Strange! No one will help you.
Please be patient to look down, help me analyze and analyze.

First of all, the file is UTF-8 encoded, the host is also Linux. After many Tests-

Now with the two host is the Chinese name Network and win the net, the following:
Love Infinity
echo $_get[' str '];
?>


Files can be displayed in Chinese "Love Infinity". Code reception behaves normally.

But I bought a new space in the electricity, but strange phenomenon occurred, namely:
Love Infinity (here str parameter-to UrlEncode once again)
echo $_get[' str '];
?>


Or

Love Infinity
echo iconv (' gb2312 ', ' utf-8 ', $_get[' str ');
?>


In order to correctly display the Chinese "Love Infinite", is how the matter!
File encoding is utf-8 Why do you still want to turn, or how to change in the middle of it!

------Optimal Solution--------------------
The HTTP header information is
Ms-author-via:dav
And the implication of DAV is that the server's preferred method for authoring is WebDAV
WebDAV is Microsoft's HTTP protocol extension

This guesses that the server always handles multibyte text in Unicode encoding
The corresponding Chinese is GBK
------Other Solutions--------------------
is the browser utf-8 encoded?

Love infinitely So how
------Other Solutions--------------------
Since you said, "Do not help," then I'll pass by.


Hint ASCII (25) ==%
------Other Solutions--------------------
Check the host default encoding is not UTF8
------Other Solutions--------------------
References:
is the browser utf-8 encoded?
Love infinitely So how


1, to know, I must be using the same browser test, the first two host normal, the new host is not normal.
2, or garbled, get Iconv (' gb2312 ', ' utf-8 ', $_get[' str ');

Strange, originally transmitted%e7%88%b1%e6%97%a0%e9%99%90 already is Utf-8 code, receive display why also transcoding, is the host system set what?
------Other Solutions--------------------
Don't help.
------Other Solutions--------------------
Reference:
Check the host default encoding is not UTF8

How to check this, please?
------Other Solutions--------------------
1, with Echo ini_get (' Default_charset '); check, output: Utf-8
That's right.

2, with Echo mb_detect_encoding ($_get[' str '); check (str.php?str=%e7%88%b1%e6%97%a0%e9%99%90), Output: CP936
There's a problem! – Not Utf-8
------Other Solutions--------------------
Reference:
The HTTP header information is
Ms-author-via:dav
And the implication of DAV is that the server's preferred method for authoring is WebDAV
WebDAV is Microsoft's HTTP protocol extension

This guesses that the server always handles multibyte text in Unicode encoding
The corresponding Chinese is GBK
What about the Boss? Tap to pull.
------Other Solutions--------------------
OK, contact the host business, the host to tune Up, is their host of things. Knot!
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.