In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
The main content of this article is to explain "how to solve the problem of garbled parameters on the php delivery page". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "how to solve the problem of garbled parameters on the php delivery page"!
Php transfer page parameter garbled solutions: 1, open the corresponding PHP code file; 2, through the "if ($tag = iconv ('UTF-8', $c, iconv ($c,' UTF-8', $tag) {.}" method to solve the garbled problem.
This article operating environment: Windows7 system, PHP7.4 version, Dell G3 computer.
How to solve the problem of garbled parameters on the php delivery page?
Attempt to solve the problem of garbled parameters in php get values:
The Chinese parameters of the website are sent directly, such as / index.php?t= Hello.
All pages are utf-8 encoded
Firefox, garbled code under normal IE under firefox
At present, this method is used to solve the problem temporarily.
$bm = array ('UTF-8','GBK'); $charTest; foreach ($bm as $c) {if ($tag = iconv (' UTF-8', $c, iconv ($c, 'UTF-8', $tag)) {/ / is it equivalent after transcoding $charTest = $c; break;}} if ($charTest = =' GBK') {$tag = iconv ('GBK',' UTF-8', $tag) } at this point, I believe you have a deeper understanding of "how to solve the problem of garbled parameters on the php delivery page". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.