The problem of Chinese garbled characters in PHP generated text watermark How to make watermark text watermark

Source: Internet
Author: User
These two days to help colleagues test composite pictures and text effect, picture synthesis no problem, but the composition of the text, encountered a little problem, Chinese has been garbled, began to think that no header declaration Utf-8, plus after the discovery or not, Then the text to be generated with iconv turned into utf-8 or not, searched, and finally found that the use of the generated text function has a problem, before the use of this imagestring (), it seems that the function of the Chinese is not very supportive, I replaced the imagettftext is good

The above describes the PHP generated text watermark when the Chinese garbled problem, including the text watermark, PHP content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.