I'm working on a webproject that involves sending EPL2 printing codes to a Zebra label printer. It does this by writing a file to the local computer with the EPL2-codes and calling an ActiveX-component that executes a command to send the EPL2-code to the printer port. I've got all of it working except one thing: I need to send the degree character ° to the printer to be printed on the label. When I just send it to the printer with that in the printing codes it prints a zero with a diagonal strike through it instead of what I expect. The file written to the computer definitely contains the right character so that can be ruled out.
I've consulted the programming manual (http://www.geksagon.ru/i/2/EPL2_Manual.pdf) and found some information: turns out I'm printing symbol 237 instead of 248 in the standard character set but there is no hint as to how it can be fixed. Setting different encodings prints other symbols but there is no way to determine how I can print the °.
Does anyone know how I can print that character or - alternatively - print characters by their character code?
Edit: The following image shows the default character map as printed in the manual, much like an HTML code table I would expect there to be a way to print the degree sign by passing the character code. (In an HTML file °
or °
would show as °, I'm looking for a way to do the same thing with EPL2.)
Try setting your code page with
I8,A,001
and using the character code 176. 176 is the degree symbol in both the Windows 1252 code page and Unicode, so hopefully your ActiveX control will do the right thing with it.