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

Operation request: Escape Smart Characters #419

Open
n1474335 opened this issue Nov 20, 2018 · 2 comments · May be fixed by #1291
Open

Operation request: Escape Smart Characters #419

n1474335 opened this issue Nov 20, 2018 · 2 comments · May be fixed by #1291

Comments

@n1474335
Copy link
Member

Summary

An operation to convert smart characters (quotes, dashes, apostrophes, arrows, copyright signs, ellipses etc.) back to plain ASCII.

Example

Input

“”—‘’ →©…

Output

""--''-->(c)...

References

http://unicode.scarfboy.com/?s=quotation+mark
http://quotesandaccents.com/

@ghost
Copy link

ghost commented Dec 30, 2018

What should happen if the input contains a character with no obvious text equivalent, eg ☣?
http://unicode.scarfboy.com/?s=U%2b2623

Should it be:

  • Removed from the output
  • Included in the output
  • Escaped to HTML/Unicode entity
  • Something else

@n1474335
Copy link
Member Author

n1474335 commented Jan 1, 2019

It would probably make sense for this to be an option that the user can specify. The following options should be available:

  • Remove
  • Include
  • Replace with a '.'

If someone wants to escape them as HTML or Unicode entities, there are other operations that can achieve that.

@jl5193 jl5193 linked a pull request Jan 21, 2022 that will close this issue
BRAVO68WEB pushed a commit to BRAVO68WEB/CyberChef that referenced this issue May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant