AjaxPlorer 2.55 한글 업로드 및 다운로드 가능토록 수정

Ajaxplorer

1. /server/conf/conf.php

$default_language="en"      =>> $default_language="ko" 로변경


2. server/classes/class.SystemTextEncoding.php


function getEncoding(){

...

}


함수 내에 setlocale(LC_CTYPE, 'ko_KR.eucKR'); 추가

ex)

function getEncoding(){
        global $_SESSION;
        // Check if the session get an assigned charset encoding (it's the case for remote SSH for example)
        if (isset($_SESSION["AJXP_CHARSET"]) && strlen($_SESSION["AJXP_CHARSET"])) return $_SESSION["AJXP_CHARSET"];
        // Get the current locale (expecting the filesystem is in the same locale, as the standard says)
        setlocale(LC_CTYPE, 'ko_KR.eucKR');
        return SystemTextEncoding::parseCharset(setlocale(LC_CTYPE, 0));
 }


setlocale에 대한 자세한 사항은 아래 php.net 참조


http://kr.php.net/manual/kr/function.setlocale.php


위 수정만으로 한글 파일 업로드 및 다운로드 가능합니다.

2010/08/18 21:11 2010/08/18 21:11

Trackback Address :: https://youngsam.net/trackback/1321