? Keyword % CE % F7 % B9 % CF available? Keyword watermelon is not available today when programming, found a problem, if the search only uses code? Keyword watermelon cannot be searched if the converted code is used? If keyword % CE % F7 % B9 % CF is used, the phpsmarty structure can be searched. how can I change the settings to search directly? it seems that it is code conversion. I don't know how to convert it ,? Keyword = % CE % F7 % B9 % CF available? Keyword = watermelon unavailable
During programming today, I found a problem,
If the search only uses code? Keyword = watermelon cannot be searched
If you use the conversion code? Keyword = % CE % F7 % B9 % CF can be searched
I am using the php smarty structure. could you tell me how to set it for direct search? it seems that it is code conversion. I don't know how to turn it, so I beg for advice
------ Solution --------------------
Encode the Chinese url:
Echo urlencode ('basic info Progress '); // % BB % F9 % B1 % BE % D7 % CA % C1 % CF % BD % F8 % B6 % C8
Convert the transcoded url back to Chinese:
Echo urldecode ('% BB % F9 % B1 % BE % D7 % CA % C1 % CF % BD % F8 % B6 % C8'); // Basic Information progress
------ Solution --------------------
% CE % F7 % B9 % CF is gbk watermelon
The default character set for smarty is UTF-8.