URL 인코딩~
<html>
<body>
<script type="text/javascript">
var s;
s = encodeURI('http://google.com/소 설.html');
document.write('<p>' + s + '<p>');
//결과 http://google.com/%EC%86%8C%20%EC%84%A4.html
s = encodeURIComponent('http://google.com/소 설.html');
document.write('<p>' + s + '<p>');
//결과 http%3A%2F%2Fgoogle.com%2F%EC%86%8C%20%EC%84%A4.html
s = escape('http://google.com/소 설.html');
document.write('<p>' + s + '<p>');
//결과 http%3A//google.com/%uC18C%20%uC124.html
</script>
</body>
</html>