Hi steven
I have convert Esc to hex :1b or to decimal: 156
still its not printing. Please can u give me example to print pound symbol in c# using Epl language.
I have convert Esc to hex :1b or to decimal: 27
still its not printing. Please can u give me example to print pound symbol in c# using Epl language.
Because you typed in "ESC x9C" as string literal, that's why you got the string. You have to use the ASCII code for ESC and £ for correct encoding. As suggested, use the HxD Hex Editor to check and verify the encoding. Have you tried to send the attached EPL to the printer? You can also use HxD Hex Editor to view the attached EPL. Hope that will give you a clue on how the ESC and £ are encoded.
Use \£ (ESC + 0x9C) to print. However, be aware of the actual encoding in the text editor. Here is the actual encoding, viewed in Notepad++. I had to use HxD Hex Editor to ensure that the ESC and 0x9C are coded correctly.
Attached is the EPL that prints the £. Hope this helps.
6 Replies
You have to change the International encoding for that line using ^CI28. The next line after that you must set it back to ^CI17.
This is the line I have for my pound sign,
^FT81,68^A0R,39,38^FH^CI28^FD _c2_a3 ^FS
The bit you need is
^FH ^CI28 ^FD _c2_a3 ^FS
_c2_a3 is the UTF8 Hex encoding for £. You can find a list of them here.
Hi steven
I have convert Esc to hex :1b or to decimal: 156
still its not printing. Please can u give me example to print pound symbol in c# using Epl language.
I have convert Esc to hex :1b or to decimal: 27
still its not printing. Please can u give me example to print pound symbol in c# using Epl language.
Hi Steven,
I have tried above code but its printing as string, not printing pound symbol.
Eg:
N CR LF
A150,200,0,3,1,1,N,"British Pound sign : ESC x9C" CR LF
P1 CL RF
Output: British Pound sign : ESC x9C
Because you typed in "ESC x9C" as string literal, that's why you got the string. You have to use the ASCII code for ESC and £ for correct encoding. As suggested, use the HxD Hex Editor to check and verify the encoding. Have you tried to send the attached EPL to the printer? You can also use HxD Hex Editor to view the attached EPL. Hope that will give you a clue on how the ESC and £ are encoded.
Use \£ (ESC + 0x9C) to print. However, be aware of the actual encoding in the text editor. Here is the actual encoding, viewed in Notepad++. I had to use HxD Hex Editor to ensure that the ESC and 0x9C are coded correctly.
Attached is the EPL that prints the £. Hope this helps.