diff --git a/webht/third_party/trippestOrderSync/controllers/order_finance.php b/webht/third_party/trippestOrderSync/controllers/order_finance.php index d9a750a8..ef30746f 100644 --- a/webht/third_party/trippestOrderSync/controllers/order_finance.php +++ b/webht/third_party/trippestOrderSync/controllers/order_finance.php @@ -156,7 +156,7 @@ class Order_finance extends CI_Controller { $report_tour_pvt = array(); $report_tour_pvt['ordernumber'] = $cpvt->coli_id; $report_tour_pvt['tourCode'] = mb_substr($cpvt->PAG_Code, 0, 50); - $report_tour_pvt['tourname'] = substr($cpvt->pag_name, 0, 200); + $report_tour_pvt['tourname'] = mb_convert_encoding(substr($cpvt->pag_name, 0, 200), 'UTF-8'); $report_tour_pvt['tourtime'] = $cpvt->startdate; $report_tour_pvt['tourRSd'] = $cpvt->adult_num; $report_tour_pvt['tourRSx'] = $cpvt->child_num; @@ -190,7 +190,7 @@ class Order_finance extends CI_Controller { $cost_c = array(); $cost_c['ordernumber'] = $cost->coli_id; $cost_c['tourCode'] = mb_substr(implode(',', array_unique(array_map(function($ele){ return $ele->real_code; }, $cost->order_cost))), 0, 50); - $cost_c['tourname'] = substr($cost->pag_name, 0, 200) ; + $cost_c['tourname'] = mb_convert_encoding( substr($cost->pag_name, 0, 200), 'UTF-8') ; $cost_c['tourtime'] = $cost->startdate; $cost_c['tourRSd'] = $cost->order_cost[0]->adult_num; $cost_c['tourRSx'] = $cost->order_cost[0]->child_num;