/    Sign up×
Community /Pin to ProfileBookmark

ajax problem with accents

ok. so i have a plain form that sends some variables to a php script that generates an xml file after it does a search. the same php script processes data passed over to it by an ajax request. the important thing to mention here is that some of the fields may pass names of latin american countries that have accents. like México. ok. so when the data is passed directly to the script in the browser everything works fine and as expected. but when the variables are passed via POST over an ajax request and one of the variables has an accent the search doesn’t work. the script has a utf-8 encoding. tried iso-8859-1 too. whats different between both POST requests?! if they both send data to the same file? with the same encoding?

i’m out of ideas…

thanks…

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@toshogauthorJan 30.2008 — any developers out there?
Copy linkTweet thisAlerts:
@toshogauthorJan 30.2008 — ok.. i guess everybody is developing... i'll look somewhere else....
×

Success!

Help @toshog spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...