我有一个带有国家/地区列表的Ajax Droplist。如果选择“日本”(“ Japan”),则传递给Java的参数是UTF-8代码`SELECT leaderstbl.lfname AS leaders, IF(COUNT(vfname)>1,COUNT(vfname),0) AS followers, IF(COUNT(household)>1,COUNT(household),0) AS household FROM votersinfotbl WHERE vleaders IN (SELECT vleaders FROM votersinfotbl WHERE vaddress = 'ABACA') AND vleaders NOT IN ('NONE', 'none', 'None', '') AND vaddress = 'ABACA' AND household IN (SELECT vleaders FROM votersinfotbl WHERE vaddress = 'ABACA')
FULL OUTER JOIN leaderstbl ON votersinfotbl.lfname=leaderstbl.lfname
GROUP BY leaderstbl.lfname ORDER BY vleaders ASC`
。当Java将其解码回字符串时,将其视为每对都是新字符,而不是两组较长的UTF-8字符串,例如%E6%97%A5%E6%9C%AC
和E697A5
符合预期。