チェンジセット 118

差分発生行の前後
無視リスト:
コミット日時:
2010/09/30 19:57:14 (14 年前)
コミッタ:
sorshi
ログメッセージ:

文字コードをUTF-8からEUC-JPに変更

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • trunk/install/php/mp4player.php

    r116 r118  
    66mp4player.php 
    77 
    8 ��� 
    9 HTML5 Video Player��戎�c�MP4����������� 
     8目的 
     9HTML5 Video Playerを使ってMP4の再生をします 
     10 
    1011based HTML5 Video Player | VideoJS http://videojs.com/  
    1112 
    12 綣�� 
    13 f:�������ゃ��� 
     13引数 
     14f:再生ファイル名 
     15 
    1416 DCC-JPL Japan/foltia project 
    1517 
     
    3739FROM foltia_subtitle,foltia_program  
    3840WHERE pid = ? AND foltia_subtitle.tid = foltia_program.tid"; 
    39 $rs = sql_query($con, $query, "DB������紊掩�������",array($pid)); 
     41$rs = sql_query($con, $query, "DBクエリに失敗しました",array($pid)); 
    4042$rowdata = $rs->fetch(); 
    4143 
    42 $title = htmlspecialchars(mb_convert_encoding($rowdata[0],"UTF-8", "EUC-JP")); 
     44//$title = htmlspecialchars(mb_convert_encoding($rowdata[0],"UTF-8", "EUC-JP")); 
     45$title = htmlspecialchars($rowdata[0]); 
    4346        if ($rowdata[1] == ""){ 
    4447        $countno = ""; 
    4548        }else{ 
    46         $countno = "膃�.htmlspecialchars($rowdata[1])."荅�
     49        $countno = "第".htmlspecialchars($rowdata[1])."話"
    4750        } 
    48 $subtitle = htmlspecialchars(mb_convert_encoding($rowdata[2],"UTF-8", "EUC-JP")); 
     51//$subtitle = htmlspecialchars(mb_convert_encoding($rowdata[2],"UTF-8", "EUC-JP")); 
     52$subtitle = htmlspecialchars($rowdata[2]); 
    4953$tid =  htmlspecialchars($rowdata[3]); 
    5054$filename = htmlspecialchars($rowdata[4]); 
    5155 
    52 }else{//綣���������弱��� 
     56}else{//引数なしエラー処理 
     57 
    5358header("Status: 404 Not Found",TRUE,404); 
    5459print "<!DOCTYPE html> 
    5560<html> 
    5661<head> 
    57   <meta charset=\"utf-8\" />\n"; 
     62  <meta charset=\"EUC-JP\" />\n"; 
    5863        print "  <title>foltia HTML5 Video Player</title></head><body>No pid.</body></html>"; 
    5964        exit ; 
    6065} 
    6166 
    62 if ($filename == "") {//����ゃ�����������弱���header("Status: 404 Not Found",TRUE,404); 
     67if ($filename == "") {//ファイルなしなしエラー処理 
     68header("Status: 404 Not Found",TRUE,404); 
    6369print "<!DOCTYPE html> 
    6470<html> 
    6571<head> 
    66   <meta charset=\"utf-8\" />\n"; 
     72  <meta charset=\"EUC-JP\" />\n"; 
    6773        print "  <title>foltia HTML5 Video Player</title></head><body>File not found.</body></html>"; 
    6874        exit ; 
     
    7076 
    7177 
    72 print "<!DOCTYPE html>\n<html>\n<head><meta charset=\"utf-8\" />\n\n 
     78print "<!DOCTYPE html>\n<html>\n<head><meta charset=\"EUC-JP\" />\n\n 
    7379<title>foltia HTML5 Video Player / $title $countno $subtitle</title>\n"; 
    7480$mp4videofileurl =  "http://". getserverfqdn() ."$httpmediamappath/$tid.localized/mp4/$filename"; 
     
    7884 
    7985  <!-- Include the VideoJS Library --> 
    80   <script src="./video-js/video.js" type="text/javascript" charset="utf-8"></script> 
     86  <script src="./video-js/video.js" type="text/javascript" charset="EUC-JP"></script> 
    8187 
    82   <script type="text/javascript" charset="utf-8"> 
     88  <script type="text/javascript" charset="EUC-JP"> 
    8389    // Run the script on page load. 
    8490 
     
    100106  </script> 
    101107  <!-- Include the VideoJS Stylesheet --> 
    102   <link rel="stylesheet" href="./video-js/video-js.css" type="text/css" media="screen" title="Video JS" charset="utf-8"> 
     108  <link rel="stylesheet" href="./video-js/video-js.css" type="text/css" media="screen" title="Video JS" charset="EUC-JP"> 
    103109</head> 
    104110<body> 
track feed