Changeset 7179 for temp/trunk/data
- Timestamp:
- 2006/11/01 12:02:42 (20 years ago)
- Location:
- temp/trunk/data
- Files:
-
- 6 edited
-
class/GC_SendMail.php (modified) (1 diff)
-
class/SC_Pdf.php (modified) (2 diffs)
-
conf/conf.php (modified) (1 diff)
-
lib/gdthumb.php (modified) (1 diff)
-
lib/glib.php (modified) (1 diff)
-
lib/slib.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/GC_SendMail.php
r6972 r7179 64 64 $this->to = $to; 65 65 $this->subject = Mb_encode_mimeheader($subject); 66 $this->body = mb_convert_encoding( $body, "iso-2022-jp", " EUC-JP");66 $this->body = mb_convert_encoding( $body, "iso-2022-jp", "CHAR_CODE"); 67 67 $this->header = "Mime-Version: 1.0\n"; 68 68 $this->header .= "Content-Type: text/html; charset=iso-2022-jp\n"; -
temp/trunk/data/class/SC_Pdf.php
r5934 r7179 28 28 function SC_Pdf($width = 595, $height = 842, $fontsize = 10) { 29 29 $this->license_key = "B600602-010400-714251-5851C1"; 30 $this->src_code = " EUC-JP";30 $this->src_code = "CHAR_CODE"; 31 31 // UTF-8¤Ç¤Ê¤¤¤È¥Ö¥í¥Ã¥¯Æâ¤Ç²þ¹Ô¤Ç¤¤Ê¤¤¡£ 32 32 $this->dst_code = "UTF-8"; … … 410 410 $end_y = 0; 411 411 } 412 $enc_table = mb_convert_encoding($line, "utf-8", " euc-jp");412 $enc_table = mb_convert_encoding($line, "utf-8", "CHAR_CODE"); 413 413 414 414 $tf = PDF_create_textflow($this->pdf, $enc_table, $option); -
temp/trunk/data/conf/conf.php
r6986 r7179 64 64 define("AFF_ENTRY_COMPLETE", 2); 65 65 //-------------------------------------------------------------------------------------------------------- 66 67 // ʸ»ú¥³¡¼¥É 68 define("CHAR_CODE", "EUC-JP"); 66 69 67 70 // EC-CUBE¥Ð¡¼¥¸¥ç¥ó¾ðÊó -
temp/trunk/data/lib/gdthumb.php
r1328 r7179 40 40 list($Ck, $Msg) = $objg->Main($_GET["path"], $_GET["mw"], $_GET["mh"]); 41 41 if(!$Ck) { // ¥¨¥é¡¼¤Î¾ì¹ç 42 header("Content-Type: text/html; charset= euc-jp");42 header("Content-Type: text/html; charset=CHAR_CODE"); 43 43 print $Msg; 44 44 } -
temp/trunk/data/lib/glib.php
r6413 r7179 23 23 24 24 $return = $header.$contents; 25 if (mb_detect_encoding($return) == ' EUC-JP'){ //ʸ»ú¥³¡¼¥ÉÊÑ´¹26 $return = mb_convert_encoding($return,'SJIS',' EUC-JP');25 if (mb_detect_encoding($return) == 'CHAR_CODE'){ //ʸ»ú¥³¡¼¥ÉÊÑ´¹ 26 $return = mb_convert_encoding($return,'SJIS','CHAR_CODE'); 27 27 $return = str_replace( array( "\r\n", "\r" ), "\n", $return); // ²þ¹ÔÊýË¡¤ÎÅý°ì 28 28 } -
temp/trunk/data/lib/slib.php
r6713 r7179 130 130 global $GLOBAL_ERR; 131 131 if($GLOBAL_ERR == "") { 132 $GLOBAL_ERR = "<meta http-equiv='Content-Type' content='text/html; charset= EUC-JP'>\n";132 $GLOBAL_ERR = "<meta http-equiv='Content-Type' content='text/html; charset=CHAR_CODE'>\n"; 133 133 } 134 134 $GLOBAL_ERR.= "<table width='100%' border='0' cellspacing='0' cellpadding='0' summary=' '>\n"; … … 360 360 361 361 /* i18n¢· ¤À¤ÈÀµ¾ï¤Ëưºî¤·¤Ê¤¤¤¿¤á¡¢mb¢· ¤ËÊѹ¹ 362 if (i18n_discover_encoding($data) == ' EUC-JP'){363 $data = i18n_convert($data,'SJIS',' EUC-JP');362 if (i18n_discover_encoding($data) == 'CHAR_CODE'){ 363 $data = i18n_convert($data,'SJIS','CHAR_CODE'); 364 364 } 365 365 */ 366 if (mb_internal_encoding() == ' EUC-JP'){367 $data = mb_convert_encoding($data,'SJIS',' EUC-JP');366 if (mb_internal_encoding() == 'CHAR_CODE'){ 367 $data = mb_convert_encoding($data,'SJIS','CHAR_CODE'); 368 368 } 369 369 … … 2150 2150 2151 2151 // PHP¤Îmb_convert_encoding´Ø¿ô¤òSmarty¤Ç¤â»È¤¨¤ë¤è¤¦¤Ë¤¹¤ë 2152 function sf_mb_convert_encoding($str, $encode = ' EUC-JP') {2152 function sf_mb_convert_encoding($str, $encode = 'CHAR_CODE') { 2153 2153 return mb_convert_encoding($str, $encode); 2154 2154 }
Note: See TracChangeset
for help on using the changeset viewer.
