Preg_replace () garbled

Source: Internet
Author: User
$search _input=$_request["Search_input"]; $search _input = Preg_replace ('/\s (? =\s)/', ' ', $search _input); $search _ Array=explode ("", $search _input), if (Is_array ($search _array)) {$search _array=implode ("|", $search _array);} $clientNumber =preg_replace ("/($search _array)/I", "\\1", $clientNumber); $clientTime =preg_replace ("/($search _array )/I "," \\1 ", $clientTime); echo" $i ";

Describe:
1.FF no problem, ie6+ should have a problem
2. $search _input more than one piece of data can be split in multiple spaces
3. The page number is the loop output

Problem:
1. Direct query after no problem but click on the page number will appear garbled phenomenon.


Reply to discussion (solution)

Have you ever met the "??

Even if the original data are not given, crying is no use!

Encodeurl ();
Solve Chinese garbled problem.

Reply to the knot post.

  • 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.