Virtuemart 電話詢問(電話報價)頁面內文出現亂碼之解決

| |
[ 發表時間:2011/01/26 06:49 | 分類 : Maru Think | by zuyan ]
修改詢問頁面
components\com_virtuemart\themes\default\templates\pages\shop.ask.tpl.php
第34行

原始程式碼
<textarea rows="10" cols="60" name="text" id="contact_text" class="inputbox"><?php echo utf8_decode($subject) ?></textarea><br />

修正程式碼
<textarea rows="10" cols="60" name="text" id="contact_text" class="inputbox"><?php echo urldecode($subject) ?></textarea><br />


administrator/components/com_virtuemart/classes/ps_product.php
第2190行

原始程式碼
$product_name = htmlentities( $this->get_field($product_id, 'product_name'), ENT_QUOTES );

修正程式碼
$product_name = htmlentities( $this->get_field($product_id, 'product_name'), ENT_QUOTES, 'utf-8' );


使用版本
Joomla 1.5.22
VirtueMart 1.1.6
評論(0) | 引用(0) | 閱讀(34341)
發表評論
暱稱 [註冊]
密碼 訪客無需密碼
網址
電郵
開啟HTML 開啟UBB 開啟表情 隱藏 記住我