Php developed pos to print Chinese garbled characters.

Source: Internet
Author: User
Tags print format
Php development pos print Chinese garbled characters, please High People with guidance is core Ye xp-c230 (80mm printing), I use php development print, print English OK, Chinese will print out garbled characters, I don't know how to set the correct font.

PS, My php printing code


Reply to discussion (solution)

The landlord has sent an error.

Check the format of your file encoding.

Check the format of your file encoding.

UTF-8 without BOM format, using notepad ++ Software

You look at the manual, xp-c230 can support UTF-8 Chinese characters?
I'm afraid it can only be gbk, right?

You look at the manual, xp-c230 can support UTF-8 Chinese characters?
I'm afraid it can only be gbk, right?

The moderator is mighty. I changed it to gbk. you can do it. do you like it?

You look at the manual, xp-c230 can support UTF-8 Chinese characters?
I'm afraid it can only be gbk, right?

Can I set printing to support html code?

Difficult to set the print format

Not very clear. you should check the Printer User Manual (Programmer Manual)
After searching, there are a lot of entries for this printer, and there may be articles such as tips.

Not very clear. you should check the Printer User Manual (Programmer Manual)
After searching, there are a lot of entries for this printer, and there may be articles such as tips.

I haven't found any tips, but the Programmer's Manual does. if it weren't for your help, I guess I still don't know when to solve this garbled problem. I have no answer to this question after searching for a long time on the Internet (garbled question)

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.