PHP read the Informix data through ODBC garbled, how should be modified?

Source: Internet
Author: User
Keywords PHP ODBC garbled Informix
Tags echo date informix
PHPODBC garbled Informix

Modify the client locale and database locale or modify the other? What did you change it into?
I am calling from PHP, can I convert the calling data encoding in PHP language?

The page displays the following results:

今天日期:12-12-04险种      单数      保费����        994     1974911.90������      20      68230.00������      10      3750.00������      52      8026.43�Ҳ���      24      15090.00�ϼ�        1100        2070008.33
            <title>PHP and ODBC 1</title>        
   
    
           
   
    
           
   \ n ";        } $sql = "select * from Tongji";        $rs = Odbc_exec ($conn, $sql); echo "
   
   
     "; echo " 
    "; while (Odbc_fetch_row ($rs)) {$result 1 = odbc_result ($rs, "Xianzhong"); $result 2 = Odbc_result ($rs, "Danshu"); $result 3 = Odbc_result ($rs, "Baofei"); Iconv ("Latin-1", "gb2312", $result 1);//test Code echo " 
     
       "; echo " 
      "; echo " 
      "; echo " 
      "; echo " 
     "; } odbc_close ($conn); echo " 
    
Types of Insurance Singular Premium
$result 1$result 2$result 3
"; ?>
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.