This page shows you how to make the difference between two characters that are really visually similar.
Are this two characters the same ?
–
-
To solve this problem, you need to pass them to an application or function to get their code point
The first solution is based on javascript but every language should give you a function to get the unicode code point
let codePoint = character.charCodeAt(0).toString(16)
Diff between Characters with an hex tool such as hexdump on Unix that output hexadecimal digits
Steps:
echo $LANG
en_US.UTF-8
echo – | hexdump -C
00000000 e2 80 93 0a |....|
00000004
echo - | hexdump -C
00000000 2d 0a |-.|
00000002