기본 콘텐츠로 건너뛰기

gsjava 엣지 다운로드 파일 글자깨짐 현상

다운로드 서버와 윈도우의 문자 형식이 달라서 그렇습니다.

서버쪽은 UTF-8, 윈도우는 EUC-KR 인데, 기존 ie 같은 경우는 나온지가 한참 되어서

서버 관리자 쪽에서 해당 문제에 대해 해결하는 구문을 대부분 추가해 놓았습니다.
(브라우저가 IE인지 먼저 확인하고, IE이면 문자를 EUC-KR로 강제 변환)

그래서 IE로 다운받으면 파일명이 깨지지 않습니다.

하지만 엣지 브라우저는 출시된지가 얼마 안됐고, 사용자도 타 브라우저에 비해 적어서

관리가 안되는 서버들은 수정하지 않는 것 같습니다.

개인이 해결하는 방법은 없고, 서버쪽에서 엣지 브라우저 관련 구문을 추가하거나
MS가 엣지에서 UTF-8을 쓰도록 업데이트 해주면 되겠습니다만

어느 쪽도 오래 걸릴겁니다

댓글

이 블로그의 인기 게시물

dmesg 메시지 실시간으로 보기

참조사이트 http://imitator.kr/Linux/556 # tail -f /var/log/messages # tail -f |dmesg //기본 2초 단위로 갱신 된다. # watch "dmesg | tail -f" //1초 단위로 갱신하면서 보여준다. # watch -n 1 "dmesg | tail -f" // 보여주는 줄을 20으로 늘린다. (기본 10줄) # watch -n 1 "dmesg | tail -f -n 20"

java 특정 디렉토리에 있는 파일 목록을 읽어내기, 정렬해서 가져오기

폴더 리스트 가져오기 String path="C:\"; File dirFile=new File(path); File []fileList=dirFile.listFiles(); for(File tempFile : fileList) {   if(tempFile.isFile()) {     String tempPath=tempFile.getParent();     String tempFileName=tempFile.getName();     System.out.println("Path="+tempPath);     System.out.println("FileName="+tempFileName);     /*** Do something withd tempPath and temp FileName ^^; ***/   } } 정렬해서 가져오기 import java.io.FileFilter; import java.io.IOException; import java.util.Arrays; import java.util.Date; import org.apache.commons.io.comparator.LastModifiedFileComparator; import org.apache.commons.io.filefilter.FileFileFilter; public class LastModifiedFileComparatorTest { public static void main(String[] args) throws IOException { File directory = new File("."); // get just files, not directories File[] files = directory.listFiles((FileFilter) FileFileFilter.FILE); System.out.println("Defaul...