Skip to content
컴퓨터잡담
2010.10.11 17:32

Autohotkey 파일 저장시 한글 깨짐 현상

조회 수 11171 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

Autohotkey 파일 저장시 한글 깨짐 현상


유니코드 인코딩을 ANSI 인코딩으로 변환하는 방법이 필요합니다.


FileRead,var,UTF.txt 
Transform,Clipboard,Unicode,%var% 
sleep,300 
msgbox,%Clipboard% 
return



혹은


*공식포럼에서 가져왔습니다* 
 Utp-8 ㅡ> Ansi (by Sean) 
TransForm과 기능은 같습니다. 

FileRead, UTP_8, C:\Utp.txt 

MsgBox, % UTF82Ansi(UTP_8) 

========================================= 

UTF82Ansi(zString) 

  Ansi2Unicode(zString, wString, 65001) 
  Unicode2Ansi(wString, sString, 0) 
  Return sString 


Ansi2Unicode(ByRef sString, ByRef wString, CP = 0) 

    nSize := DllCall("MultiByteToWideChar" 
      , "Uint", CP 
      , "Uint", 0 
      , "Uint", &sString 
      , "int",  -1 
      , "Uint", 0 
      , "int",  0) 

  VarSetCapacity(wString, nSize * 2) 

  DllCall("MultiByteToWideChar" 
      , "Uint", CP 
      , "Uint", 0 
      , "Uint", &sString 
      , "int",  -1 
      , "Uint", &wString 
      , "int",  nSize) 


Unicode2Ansi(ByRef wString, ByRef sString, CP = 0) 

    nSize := DllCall("WideCharToMultiByte" 
      , "Uint", CP 
      , "Uint", 0 
      , "Uint", &wString 
      , "int",  -1 
      , "Uint", 0 
      , "int",  0 
      , "Uint", 0 
      , "Uint", 0) 

  VarSetCapacity(sString, nSize) 

  DllCall("WideCharToMultiByte" 
      , "Uint", CP 
      , "Uint", 0 
      , "Uint", &wString 
      , "int",  -1 
      , "str",  sString 
      , "int",  nSize 
      , "Uint", 0 
      , "Uint", 0) 





로그인 후 댓글쓰기가 가능합니다.

?

  1. 23
    Aug 2012
    14:34

    Autohotkey) EditPlus에 구문 색깔 입히기

    CategoryAutoHotKey Views10809
    Read More
  2. 31
    Jul 2013
    13:22

    autohotkey) 30분마다 자동으로 디스크 정리하기

    CategoryAutoHotKey Views33070
    Read More
  3. 11
    Oct 2010
    17:32

    Autohotkey 파일 저장시 한글 깨짐 현상

    Category컴퓨터잡담 Views11171
    Read More
  4. 26
    Jan 2015
    17:19

    Autohotkey 브라우저 제어 테스트

    CategoryAutoHotKey Views8203
    Read More
  5. 02
    Oct 2010
    11:01

    autohotkey 변수의 이해

    Category컴퓨터잡담 Views20631
    Read More
  6. 27
    Dec 2014
    12:40

    autohotkey regwrite ipv6 제거툴

    CategoryWindowsTip Views1540
    Read More
  7. 11
    Jul 2010
    22:07

    AutohotKey Postmessage(SendMessage)로 CTRL+C 전송하기

    Category컴퓨터잡담 Views21413
    Read More
  8. 19
    Dec 2010
    23:39

    Autohotkey DllCall() 호출하기

    Category컴퓨터잡담 Views23469
    Read More
  9. 14
    Feb 2018
    12:48

    autohotkey command-line 실행시 파라미터 설정

    CategoryAutoHotKey Views7248
    Read More
  10. 10
    Feb 2011
    22:57

    AutoHotkey COM Standard Library

    CategoryAutoHotKey Views18046
    Read More
  11. 30
    Sep 2011
    09:11

    autohotkey - 변수리스트(Variables and Expressions) 모음

    Category컴퓨터잡담 Views11830
    Read More
  12. 12
    Mar 2013
    16:47

    Autohotkey + mypeople(마이피플) 메시지 전송

    CategoryAutoHotKey Views15431
    Read More
  13. 25
    Nov 2012
    15:55

    Ateros(아테로스) AR9485WB-EG 무선 네트워크 어댑터 드라이버 업데이트 및 다운로드

    Category컴퓨터잡담 Views15762
    Read More
  14. 05
    Jan 2013
    08:23

    asp,jsp,php 아이피(ip) 가져오기/확인

    CategoryServer Views11867
    Read More
  15. 26
    Dec 2011
    11:39

    arp란? arp 해킹방법 및 차단방법(MAC 다발변조로 인한 인터넷 차단방지)

    Category컴퓨터잡담 Views6681
    Read More
  16. 19
    Oct 2012
    09:38

    ARP(mac spoofing) 바이러스 내용 스크랩

    Category컴퓨터잡담 Views6438
    Read More
  17. 07
    Jul 2010
    11:57

    APMSetup에서 문서 출력 순서 등 설정

    Category컴퓨터잡담 Views14066
    Read More
  18. 02
    Jun 2015
    08:39

    APMSETUP7 PHP 업그레이드

    CategoryServer Views6373
    Read More
  19. 21
    Jan 2010
    13:14

    API Hooking 유저 레벨 루트킷

    Category컴퓨터잡담 Views11623
    Read More
  20. 06
    Sep 2016
    20:32

    Apache에 대한 mod_proxy 지원 구성

    CategoryServer Views1801
    Read More
Board Pagination Prev 1 ... 42 43 44 45 46 Next
/ 46

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소