There is a page, through the window.open to open another page, to open the address inside there is a parameter title, the value is Chinese, is through the function of PHP urlencode conversion, but jump past the title of the first Chinese characters displayed normal, is the Chinese character, The second character is automatically encoded, the address bar is no longer displayed in Chinese characters, in order to solve this problem, I put the value of Chinese characters with JS Encoderuicomponent transcoding, instead of UrlEncode, and then jump to the past, the address bar in the normal display of Chinese characters, Why the first is good, the second character is automatically transcoded , this reason I still do not understand, is window.open reason? Not sure, but, I learned that for the same paragraph of text, PHP urlencode and JS encodeuricomponent The encoding is not the same. If any of the Daniel know, still look at pointing twos
A bug that encountered a URL transcoding today