ryandward Posted May 27, 2011 Share Posted May 27, 2011 I need to pass this variable via AJAX, but I cannot seem to implode it properly, everything should be working since I am using UTF-8 encoding, but this: $mrq = (implode("&",$mrqa)); echo $mrq; is giving me: macro0=Americas¯o1=Southeast Asia but I am expecting macro0=Americas¯o1=Southeast Asia Quote Link to comment https://forums.phpfreaks.com/topic/237663-implode-on-ampersand/ Share on other sites More sharing options...
requinix Posted May 27, 2011 Share Posted May 27, 2011 Before you continue down this road, have you heard about http_build_query? Quote Link to comment https://forums.phpfreaks.com/topic/237663-implode-on-ampersand/#findComment-1221290 Share on other sites More sharing options...
ryandward Posted May 27, 2011 Author Share Posted May 27, 2011 Oh my god, no. Let me look here. Quote Link to comment https://forums.phpfreaks.com/topic/237663-implode-on-ampersand/#findComment-1221292 Share on other sites More sharing options...
ryandward Posted May 27, 2011 Author Share Posted May 27, 2011 I am still getting the exact same problem; macro0=Americas¯o1=Southeast+Asia Quote Link to comment https://forums.phpfreaks.com/topic/237663-implode-on-ampersand/#findComment-1221295 Share on other sites More sharing options...
.josh Posted May 27, 2011 Share Posted May 27, 2011 perhaps you are also outputting a charset meta tag on your page (or a setting in your browser) that's causing your browser to render it as a special char? Quote Link to comment https://forums.phpfreaks.com/topic/237663-implode-on-ampersand/#findComment-1221298 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.