WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Unicode Standard and ecape, Eske Entelund, January 19, 2004
     Re:Unicode Standard and ecape, Erik Arvidsson, January 19, 2004

Subject: Re:Unicode Standard and ecape From: Erik Arvidsson Date: January 19, 2004
Do not use escape and unescape. Use encodeURI, decodeURI, encodeURIComponent and decodeURIComponent becuase the latter works with unicode and works cross browser. There are differences in escape between script implementations and it cannot handle UTF-16 (I think).

When you get the string to the server most frameworks translates the encoded string to Unicode (UTF-16) and then that can be saved to your DB or text file. If it turns up as %u0644 at your server just decode it before saving it. See you framework documentation to figure out how to do this.



Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.

View All Messages
Back to WebFX