I have a site that uses the jQuery jEditable plugin (inline editing via AJAX). Thing is, if you enter something like "Entrées" (this is for editing restaurant menus, so such input should be expected), the AJAX PHP script that gets the value instead receives "Entrées". How can I ensure the value being sent is sent properly?
What's even more weird is that the database value is stored as "Entrées", but when displayed on the web page, it displays "Entrées" properly.
I think I may have solved the problem. Using escape() instead of encodeURI() worked properly. Anybody know why that would be?
escape() returned: Entr%E9es
encodeURI() returned: Entr%C3%A9es
Very strange.