In TP3.2, template page to controller get pass value garbled

Source: Internet
Author: User
In TP3.2, the data characters traversed by the template page are displayed normally, but the Chinese characters are transmitted to the Controller on a hyperlink.
echo display (Controller_name. ' /editrule '); >        
 
  
   
  M (' auth_group_access ')->where (Array ("group_id" =>0))->delete ();    if (M (' auth_group_access ')->where (Array ("uid" = = $v [' id ']))->count () > 0) {echo "has";} Else{echo "None";}    
 
  

$v [' Depname '] is a kanji, printed on the received controller is garbled. I put the header on the controller, and the code utf-8 is useless.


Reply to discussion (solution)

$v [' depname '] is kanji???
That is, your URL is a Chinese character, in addition to IIS can be used in the URL path of the Chinese characters, the other Web server is not allowed to contain the URL of the Chinese characters

$v [' depname '] is kanji???
That is, your URL is a Chinese character, in addition to IIS can be used in the URL path of the Chinese characters, the other Web server is not allowed to contain the URL of the Chinese characters


But I can test ah, in the working directory to build an HTML file and PHP file, in the HTML file to write a hyperlink with Chinese characters in the past to the PHP file, no problem ah. And I wrote the code before the line can be, after changing a server will not be

Chinese characters as URL parameters is possible, as a path is not possible
I've said it before, you don't believe me, I can't.
Individual server tests are not universally meaningful. You don't have to change a server , do you?

Chinese characters as URL parameters is possible, as a path is not possible
I've said it before, you don't believe me, I can't.
Individual server tests are not universally meaningful. You don't have to change a server , do you?


What do you mean, I changed the hyperlink to the achievement line? Oh, sorry ah, the parameters and the path is a bit confusing

For paths and parameters, that's the meaning

Maybe the root cause is that your other server's URL rewrite didn't take effect.

For paths and parameters, that's the meaning

Maybe the root cause is that your other server's URL rewrite didn't take effect.


Thank you so much!
  • 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.