Internet Explorer 에서의 ajax 에서의 한글 깨짐 현상
IE에서만 encodeURI를 적용하는게 맞다.
// 윈도우인지 다른 브라우저인지 확인 
            var ua = window.navigator.userAgent;
            var postData;
            // 윈도우라면 ? 
            if (ua.indexOf('MSIE') > 0 || ua.indexOf('Trident') > 0) {
                postData = encodeURI(sendData);
            } else {
                postData = sendData;
            }
            $.ajax({
                url: "thumnailUpload.php", // Url to which the request is send
                type: "POST",             // Type of request to be send, called as method
                data: postData, // Data sent to server, a set of key/value pairs (i.e. form fields and values)
                contentType: false,       // The content type used when sending data to the server.
                cache: false,     
'프로그래밍 > Script' 카테고리의 다른 글
| JSFIDDLE - https://jsfiddle.net/ (0) | 2020.01.10 | 
|---|---|
| 12 Extremely Useful Hacks for JavaScript (0) | 2019.12.31 | 
| JSON Editor Online (0) | 2019.11.26 | 
| [jQuery] AJAX Cross Origin plugin (0) | 2019.10.21 | 
| javascript, nl2br, nl to   (0) | 2019.09.11 | 
