About Delphi for PHP to support the Chinese poor problem

Source: Internet
Author: User

See a lot of people in the trial Delphi for PHP after the haste to make Delphi for PHP to support the Chinese poor conclusion, it is very irresponsible, as an international company, of course, can not make such a low-level error, I will explain the reasons for the problem and solutions.

We first write a simple PHP program, output a paragraph, first in English output, and then changed to Chinese, the code is as follows:

$this->label1->caption= ' This was a Test by Yangfan ';

$this->label2->caption= ' Sail Test delphi for PHP ';

After running, as shown in the figure, it does appear garbled

Here is the workaround: Main Menu--tools--options--php--default CharSet set to Gb2312,ok, then compile and run

Problem solved, it seems just Delphi for PHP default character set problem, let the Chinese compatriots misunderstood!

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.