#include <stdio.h> #include <string.h> #include <stdlib.h> // 변환 방식을 결정 #define UTF_7 0 #define UTF_8 1 #define LITTLE_ENDIAN 0 #define BIG_ENDIAN 1 #define CONVERT_FAIL 0 #define CONVERT_ONE 1 #define CONVERT_TWO 2 #define CONVERT_THREE 3 // unicode 변화과 관계 없음 //#define UNICODE_FILE "D:\\temp\\uni\\convert_unicode_and_utf\\uni.txt" //#define UTF_8_FILE "D:\\temp\\uni\\convert_unicode_and_utf\\utf.txt" #define UNICODE_FILE "C:\\Documents and Settings\\Administrator\\My Documents\\받은 파일\\uni-tmp.txt" #define UTF_8_FILE "C:\\Documents and Settings\\Administrator\\My Documents\\받은 파일\\utf-tmp.txt"