Set escpos binary file encoding type in environment variable#67
Set escpos binary file encoding type in environment variable#67PratikBodawala wants to merge 1 commit intoreceipt-print-hq:masterfrom
Conversation
|
Hello, @welcoMattic, @mike42 |
|
Hi, I've taken a look at the code. Can you share an example file which you're running this with, and the make/model of printer that you use? I would be interested to know whether I can make an alternative solution work for your use case, by adjusting the current code page each time we encounter an The default code page (encoding to assume if none is specified in the actual file) is another matter entirely, and an environment variable is certainly a good way to handle that. |
With environment variableWithout environment variablemodel: HOP-801As I mentioned in issue #61, I need 1/4, 1/2, and 3/4. The default charset has 1/4 and 1/2. But not 3/4 so, I search for other encodings which are supported by this model, so, latin1 is supported and print just fine. but when I convert it to html it was decoding from wrong charset. Following file in latin1 charset. |


#61
Setting the Environment variable "SOURCE_ENCODING" for other than CP437 encoding