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. Tested many times--

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!

------Solution--------------------
is the browser utf-8 encoded?

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


Hint ASCII (25) ==%
------Solution--------------------
Check the host default encoding is not UTF8
------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
  • 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.