Author Topic: Chinese caracteres on the ticket  (Read 22067 times)

cedric

  • Newbie
  • *
  • Posts: 2
Chinese caracteres on the ticket
« on: November 26, 2011, 03:02:15 am »
Hi!

Thanks a lot for your software, it s really nice!

I have a problem with chinese charactere, right now, each time I print a ticket with chinese caracteres, it print "???' instead of "薯条" for exemple.

Do you have any way to add a font or something on samba directory?

Thanks for your help

Cheers

Cedric

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Chinese caracteres on the ticket
« Reply #1 on: November 26, 2011, 08:05:16 am »
What type of a printer are you using?

cedric

  • Newbie
  • *
  • Posts: 2
Re: Chinese caracteres on the ticket
« Reply #2 on: November 29, 2011, 04:47:32 am »
Thanks for your answer

I had a chinese POS before with which I was able to print Chinese caracteres, so I don t think the printer is the reason

Anyway printer brand is one BOSHI BS-160KL,  and three BOSHI BS-163KN

Thanks for your help!

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Chinese caracteres on the ticket
« Reply #3 on: November 30, 2011, 06:04:52 am »

I asked it to understand if you are using a thermal printer or a different type of printer.


First of all open Ticket Printer from Printers list and try changing codepage to 936 or 950. You can find a list of all code pages from this list. http://msdn.microsoft.com/en-us/library/dd317756(VS.85).aspx


I never worked with Chinese supported printers before but AFAIK Chinese character set should be enabled on printer device if not enabled before. Please check if it is enabled or not from printer driver tool application.


Alternatively you can try enabling/disabling it by sending custom printer commands. These commands temporarily changes printer settings until reset, power off. Useful if you need to toggle some settings while printing.


According to ESC-POS documentation Chinese mode enables / disables by FS & and FS . commands. SambaPOS supports sending custom commands to printer with <XCT> tag. FS & (enable) should be sent as <XCT 28,38> and FS . (disable) command should be sent as <XCT 28,46>

So to try these commands open a printer template, add <XCT 28,38> line where you want to enable Chinese characters and add <XCT 28,46> line where you want to disable Chinese characters. They should be separate lines and you can try adding first one to the beginning of the header template and the other one to the end of footer template.


I hope it helps. Let me know if it works or not.


Note: Yesterday I've requested a sample printer from our hardware vendor and if it supports Chinese I'll try this when it delivers.

willaycoo

  • Newbie
  • *
  • Posts: 10
Re: Chinese caracteres on the ticket
« Reply #4 on: May 01, 2012, 11:54:29 pm »
any updates?

I tried the suggestions, but no success yet. I'm using a thermal printer (specifically POS-X evo-rp1). I've installed the driver with 936 Chinese support and changed the character set to 936. No luck there. When I tried putting in the <XCT..> tags, the printer would print the ticket up to where the first <XCT> tag appears and then stop without auto-cutting like it usually does.

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Chinese caracteres on the ticket
« Reply #5 on: May 02, 2012, 06:13:34 am »
I didn't tested Chinese printing yet but we have users at China :) I'll try to contact them to ask how they did that..

willaycoo

  • Newbie
  • *
  • Posts: 10
Re: Chinese caracteres on the ticket
« Reply #6 on: May 02, 2012, 01:31:19 pm »
um...i love you? haha but seriously though, thanks!

px200

  • Newbie
  • *
  • Posts: 9
Re: Chinese caracteres on the ticket
« Reply #7 on: February 13, 2013, 10:13:39 am »
I didn't tested Chinese printing yet but we have users at China :) I'll try to contact them to ask how they did that..
Hey, I want to ask whether you figure out how to use Chinese character in ticket printer

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Chinese caracteres on the ticket
« Reply #8 on: February 13, 2013, 10:34:52 am »
It works if encoding settings of the printer correctly setup.
Some users reported it works fine with Chinese, Greek and Arabic character sets.

px200

  • Newbie
  • *
  • Posts: 9
Re: Chinese caracteres on the ticket
« Reply #9 on: February 14, 2013, 02:21:50 am »
I installed SambaPos on my win 7 laptop, I change ticket printer to text, it can print Chinese correctly, but when i try to print chinese on a Win xp pro sp3, ticket printer will print error, and text mode will print everything vertically, one character each line. I think it is weird, not sure it is driver issue or samba issue. Have you see anything like that before?

px200

  • Newbie
  • *
  • Posts: 9
Re: Chinese caracteres on the ticket
« Reply #10 on: February 14, 2013, 10:50:34 am »
It turns out something wrong with the printer driver, because virtual printer fine on win xp.
Maybe the xp machine should be throw away. I am not sure how sambapos works on win 8, since microsoft will not give win 7 license anymore