Changeset 15110


Ignore:
Timestamp:
2007/07/23 19:17:06 (13 years ago)
Author:
Yammy
Message:

管理画面の「EC-CUBEのお知らせ」部分の取得した文字をEUC-JPからUTF-8へ変換

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-utf8/html/admin/home.php

    r15099 r15110  
    200200function lfGetInfo() { 
    201201    // 更新情報を最新にする 
    202     $objQuery = new SC_Query(); 
     202    #$objQuery = new SC_Query(); 
    203203    $path = UPDATE_HTTP . "info.txt"; 
    204204    $fp = @fopen($path, "rb"); 
     
    209209    } else { 
    210210        while (!feof($fp)) { 
    211             $arrRet[] = $arrCSV = fgetcsv($fp, UPDATE_CSV_LINE_MAX); 
     211            #$arrRet[] = $arrCSV = fgetcsv($fp, UPDATE_CSV_LINE_MAX); 
     212            $arrCSV = fgetcsv($fp, UPDATE_CSV_LINE_MAX); 
     213            foreach ($arrCSV AS $key=>$val) { 
     214                $tmp[$key] = mb_convert_encoding($val, CHAR_CODE, 'EUC-JP'); 
     215            } 
     216            $arrRet[] = $tmp; 
    212217        } 
    213218        fclose($fp); 
Note: See TracChangeset for help on using the changeset viewer.