[dhtmlxAjax.postSync] How to transmit parameters with accent

Hello,



I would like to post with dhtmlxAjax.postSync() parameters containing accents (acute accent or grave accent). But, when my action receive the request, characters with accents are just deleted. How could I transmit these characters?



Thanks for your help


Hello,


You can try to use encodeURIComponent() JS method to encode values of parameters.

Thanks Alex . I will try this function. Is there an other function to restore the accents from de string in my action?

Actually, I would like to encode my accents with encodeURIComponent() in Javascript. But my parameters are received by a Java class. So I would like to restore my accents thanks to a java function. But which function?.. an idea?


Try to use attached file instead of original dhtmlxcommon.js. Possibly it’ll solve the problem.


dhtmlxcommon_utf.zip (6.07 KB)

Actually, the java class decode itself the encoded string simply using encodeURIComponent when I post my parameters. That’s nice!! Thanks for your help.