Changeset 822


Ignore:
Timestamp:
Mar 25, 2015 10:25:56 AM (10 years ago)
Author:
namnd
Message:
 
Location:
pro-violet-viettel/sourcecode/application/modules/services
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/services/controllers/sync.php

    r721 r822  
    1515                        $totalpage = 1;
    1616                       
    17                         $default = $this->Services_model->getCollaborator(2,1,5000);
    18                         $data = mb_convert_encoding($default, 'UTF-8', 'ISO-8859-1');
     17                        $data = $this->Services_model->getCollaborator(2,1,5000);
     18                        //$data = mb_convert_encoding($default, 'UTF-8', 'ISO-8859-1');
    1919                        if($data){
    2020                                $xml = simplexml_load_string($data);
     
    2828                       
    2929                        for ($i=1; $i<=$totalpage; $i++){
    30                                 $result = $this->Services_model->getCollaborator(2,$i,500);
    31                                 $data = mb_convert_encoding($result, 'UTF-8', 'ISO-8859-1');
     30                                $data = $this->Services_model->getCollaborator(2,$i,500);
     31                                //$data = mb_convert_encoding($result, 'UTF-8', 'ISO-8859-1');
    3232                                if($data && $data != -1){
    3333                                        $xml = simplexml_load_string($data);
  • pro-violet-viettel/sourcecode/application/modules/services/models/services_model.php

    r818 r822  
    429429                $client->useHTTPPersistentConnection();
    430430                $client->soap_defencoding = 'UTF-8';
    431                 //$client->soap_defencoding = 'ISO-8859-1';
     431                $client->decode_utf8 = false;
    432432               
    433433                $client->operation = $action;
Note: See TracChangeset for help on using the changeset viewer.