Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Good UTF8 replacements for non-printable characters #2

Open
raspi opened this issue Jan 14, 2020 · 2 comments
Open

Good UTF8 replacements for non-printable characters #2

raspi opened this issue Jan 14, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@raspi
Copy link
Owner

raspi commented Jan 14, 2020

Figure out good replacements for non-printable characters when displaying ASCII-output (--format asc)

Currently we have some replacements such as:

  • 0x00 is 'Ø'
  • New line is '↲'
  • Tab is '⇥'

Find more characters to be replaced.

Reference:
https://github.com/raspi/heksa/blob/4e2f793a1c1fd0a5883f2fbb463d37e0c6347381/pkg/reader/ascii_lookup.go

@raspi raspi added this to the future milestone Jan 17, 2020
@raspi raspi added enhancement New feature or request help wanted Extra attention is needed labels Jan 21, 2020
@Zhentar
Copy link

Zhentar commented Jan 25, 2020

Unicode includes a block of characters for visual representations of control characters: https://www.fileformat.info/info/unicode/block/control_pictures/images.htm

@raspi
Copy link
Owner Author

raspi commented Jan 31, 2020

Note for self: also investigate what are the default fonts for different distros/OSes in terminals so that those replacement characters exist in those fonts

@raspi raspi self-assigned this Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants