>Using Reflector to search string constants containing \u finds That's a nifty idea I forgot about.
>System.Web.HttpUtility.JavaScriptStringEncode in System.Web.dll and Drats! It's a one way process and it produces rather weird encoding. I did revisit HttpUtility HtmlEncode and UrlEncode, which I must have done back in 2002 and rejected their use for reasons I can't remember. HttpEncode does nothing on high Unicode points. UrlEncode/Decode works in all cases, but it also encodes blank as + and lots of ASCII characters as a visual mess of %nn strings. I probably rejected it as ugly. Also, System.Web reference is not available for all project types. Framework 4 client profile can't add it for example. Greg
