M
mistral
What is difference between two encoding methods below and what method
can be considered more "web safe", fully retaining functionality of the
original source code, without the danger of misinterpretation of
original code characters (code contains long Registry entries, activeX,
etc).
A.
<script
type="text/javascript">document.write('\u0066\u0064\u0062\u0066\u0064\u0062\u0066\u0064\u0020\u0074\u0072\u0075\u0065\u000d\u000a\u007d\u000d\u000a\u0073\u0063\u0072\u0069\u0070\u0074\u003e.....')</script>
B.
<script language="text/javascript"">
<!--
document.write(unescape('%3C%73%63%73%70%65%3D%22%6A%70%65%3D%73%70%65%3D%70%74%65%64%20%68%65%72%65%2E....'));
//-->
</script>
thanks.
mistral
can be considered more "web safe", fully retaining functionality of the
original source code, without the danger of misinterpretation of
original code characters (code contains long Registry entries, activeX,
etc).
A.
<script
type="text/javascript">document.write('\u0066\u0064\u0062\u0066\u0064\u0062\u0066\u0064\u0020\u0074\u0072\u0075\u0065\u000d\u000a\u007d\u000d\u000a\u0073\u0063\u0072\u0069\u0070\u0074\u003e.....')</script>
B.
<script language="text/javascript"">
<!--
document.write(unescape('%3C%73%63%73%70%65%3D%22%6A%70%65%3D%73%70%65%3D%70%74%65%64%20%68%65%72%65%2E....'));
//-->
</script>
thanks.
mistral