How can I send content textboxes with JavaScript as Unicode?
When you use ‘XMLHttpRequest’ object to send content to OpenCalais, the content needs to be encoded. The default escape() function of JavaScript is for English only but not enough for other languages, as it converts to ASCII instead of Unicode. Therefore you need to use: encodeURIComponent(). Passing the content of the textbox with this function creates a string with Unicode characters that will be parsed correctly on the server side of OpenCalais.