lsongdev / lsongdev/node-escpos
Cannot print Chinese currency character ¥
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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