lsongdev / lsongdev/node-escpos

Cannot print Chinese currency character ¥

Open
#332 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.6k
Forks
443
PR merge metrics
No merged PRs in 30d

Description

I'm trying to print a template including the Chinese currency character `¥` with encoding `GB18030`. And the character will be printed as '0 6'. Is there any thing wrong with my encoding config?

## Example
Text to be print:
`¥192.00 The quick brown fox jumps over the lazy dog 敏捷的棕色狐狸跳过懒狗`

Acctually it will be printed as:
`0 6192.00 The quick brown fox jumps over the lazy dog 敏捷的棕色狐狸跳过懒狗`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the example with GB18030 and inspect the encoding configuration and print path used by the Node.js driver. Done means the ¥ character prints correctly as ¥192.00 while the surrounding English and Chinese text remains unchanged; no source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.