file encoding to utf-8
This commit is contained in:
@@ -214,13 +214,13 @@ const char* GetFontFaceFromCodePage9x(WORD codePage)
|
||||
switch( codePage )
|
||||
{
|
||||
case CP_932:
|
||||
return "굃굍 굊긕긘긞긏";
|
||||
return "굃굍 굊긕긘긞긏";
|
||||
case CP_949:
|
||||
return "굴림체";
|
||||
return "굴림체";
|
||||
case CP_936:
|
||||
return "芥竟";
|
||||
return "芥竟";
|
||||
case CP_950:
|
||||
return "꾄ⁿ톱";
|
||||
return "꾄ⁿ톱";
|
||||
case CP_874:
|
||||
return "Tahoma";
|
||||
case CP_1252:
|
||||
@@ -332,7 +332,7 @@ void base64_decode(const char * str,char * resultStr)
|
||||
{
|
||||
i=0;
|
||||
strcpy(szDest, "");
|
||||
while(nCount<length && i<4) // 4개의 바이트를 얻는다.
|
||||
while(nCount<length && i<4) // 4개의 바이트를 얻는다.
|
||||
{
|
||||
r = str[nCount++];
|
||||
result = __base64_get(r);
|
||||
@@ -340,13 +340,13 @@ void base64_decode(const char * str,char * resultStr)
|
||||
{
|
||||
if(result!=-1)
|
||||
szDest[i++] = result;
|
||||
else szDest[i++] = '@'; // It's end (64번은 디코딩시 사용되지 않기 때문)
|
||||
else szDest[i++] = '@'; // It's end (64번은 디코딩시 사용되지 않기 때문)
|
||||
}
|
||||
}
|
||||
|
||||
if(i==4) // 4개의 소스를 모두 얻어냈다. 디코드 시작
|
||||
if(i==4) // 4개의 소스를 모두 얻어냈다. 디코드 시작
|
||||
{
|
||||
if( nCount+3 >= length ) // 데이터의 끝에 도달했다.
|
||||
if( nCount+3 >= length ) // 데이터의 끝에 도달했다.
|
||||
{
|
||||
if( szDest[1] == '@' )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user