보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
String word ="인코딩 문제인가? 이클립스 문제인가? WAS문제 인가 그것이 알고 싶다....";
System.out.println("utf-8 -> euc-kr        : " +new String(word.getBytes("utf-8"),"euc-kr"));
System.out.println("utf-8 -> ksc5601       : " +new String(word.getBytes("utf-8"),"ksc5601"));
System.out.println("utf-8 -> x-windows-949 : " +new String(word.getBytes("utf-8"),"x-windows-949"));
System.out.println("utf-8 -> iso-8859-1    : " +new String(word.getBytes("utf-8"),"iso-8859-1"));
System.out.println("iso-8859-1 -> euc-kr        : " +new String(word.getBytes("iso-8859-1"),"euc-kr"));
System.out.println("iso-8859-1 -> ksc5601       : " +new String(word.getBytes("iso-8859-1"),"ksc5601"));
System.out.println("iso-8859-1 -> x-windows-949 : " +new String(word.getBytes("iso-8859-1"),"x-windows-949"));
System.out.println("iso-8859-1 -> utf-8         : " +new String(word.getBytes("iso-8859-1"),"utf-8"));
System.out.println("euc-kr -> utf-8         : " +new String(word.getBytes("euc-kr"),"utf-8"));
System.out.println("euc-kr -> ksc5601       : " +new String(word.getBytes("euc-kr"),"ksc5601"));
System.out.println("euc-kr -> x-windows-949 : " +new String(word.getBytes("euc-kr"),"x-windows-949"));
System.out.println("euc-kr -> iso-8859-1    : " +new String(word.getBytes("euc-kr"),"iso-8859-1"));
System.out.println("ksc5601 -> euc-kr        : " +new String(word.getBytes("ksc5601"),"euc-kr"));
System.out.println("ksc5601 -> utf-8         : " +new String(word.getBytes("ksc5601"),"utf-8"));
System.out.println("ksc5601 -> x-windows-949 : " +new String(word.getBytes("ksc5601"),"x-windows-949"));
System.out.println("ksc5601 -> iso-8859-1    : " +new String(word.getBytes("ksc5601"),"iso-8859-1"));
System.out.println("x-windows-949 -> euc-kr     : " +new String(word.getBytes("x-windows-949"),"euc-kr"));
System.out.println("x-windows-949 -> utf-8      : " +new String(word.getBytes("x-windows-949"),"utf-8"));
System.out.println("x-windows-949 -> ksc5601    : " +new String(word.getBytes("x-windows-949"),"ksc5601"));
System.out.println("x-windows-949 -> iso-8859-1 : " +new String(word.getBytes("x-windows-949"),"iso-8859-1"));
 
cs
Posted by pkss
,

윈도우즈의 날짜/시간 등록정보 다이얼로그는 컨트롤 패널(제어판) 애플릿입니다. 확장자도 그대로 cpl이구요. 
이걸 실행하려면 아래 오서방님이 힌트를 주셨듯이 rundll32.exe에 다른 인자들과 함께 인자로 넘기면 됩니다. 
날짜/시간 등록정보 다이얼로그의 cpl파일은 timedate.cpl이구요. 

그러니, 다음과 같이 하시면 됩니다. 
WinExec("rundll32.exe shell32.dll,Control_RunDLL timedate.cpl",SW_NORMAL); 

참고로, 제가 지금 집에서 쓰고 있는 윈2000 노트북엔 다음과 같은 cpl들이 있네요. 
access.cpl : 내게 필요한 옵션 
appwiz.cpl : 프로그램 추가/제거 
desk.cpl : 디스플레이 등록정보 
hdwwiz.cpl : 하드웨어 추가/제거 마법사 
inetcpl.cpl : 인터넷 등록정보 
input.cpl : 텍스트 서비스 
intl.cpl : 국가별 옵션 
irprops.cpl : 무선 연결 
joy.cpl : 게임 컨트롤러 
liccpa.cpl : 라이센스 모드 선택 
main.cpl : 마우스 등록정보 
mmsys.cpl : 사운드 및 멀티미디어 등록정보 
ncpa.cpl : 네트워크 및 전화접속 연결 
odbccp32.cpl : ODBC 데이터 원본 관리자 
powercfg.cpl : 전원 옵션 등록정보 
prefscpl.cpl : 리얼플레이어 프레퍼런스 
sticpl.cpl : 스캐너 및 카메라 등록정보 
sysdm.cpl : 시스템 등록정보 
telephon.cpl : 전화 및 모뎀옵션 
timedate.cpl : 윈도우즈의 날짜/시간 등록정보 


출처 : http://www.borlandforum.com/impboard/impboard.dll?action=read&db=bcb_qna&no=8349

Posted by pkss
,