developerforce / Force.com-JavaScript-REST-Toolkit

ForceTK - a minimal Force.com REST API for JavaScript apps
BSD 3-Clause "New" or "Revised" License
315 stars 175 forks source link

Replaced escape(soql) and escape(sosl) #69

Closed mr-menno closed 9 years ago

mr-menno commented 9 years ago

Fix to support umlaut and other European charaters Replaced with encodeURIComponent(soql) and encodeURIComponent(sosl)

When trying to soql or sosl search for account names and other field containing umlauts and special characters, it fails to correctly encode using escape().

As far as I know, escape() is deprecated, and encodeURIComponent() is the recommended replacement as well.

metadaddy commented 9 years ago

Looks good - thanks!