Jas*_*per 3 character-encoding unicode
我目前正在摆弄一个垂死的硬盘,在尝试从中获取cp
数据时,我收到了类似的错误
cp: error reading ‘brokenFile’: Input/output error
# comparison: backtick: `, apostrophe '
Run Code Online (Sandbox Code Playgroud)
我现在尝试通过使用sed
将错误消息转换为新cp
调用来再次复制失败的文件(我已经成功了几次)。但是:什么是有趣的引号?它们甚至在开始/结束时都不同。它没有反引号,也没有撇号。我将它复制/粘贴到我的正则表达式中,但有更好的方法吗?也许使用撰写?
查找给定字符的一个有用命令是 Free recode(以前称为 GNU recode):
$ echo -n ‘’ | recode ..dump
UCS2 Mne Description
2018 '6 left single quotation mark
2019 '9 right single quotation mark
Run Code Online (Sandbox Code Playgroud)
或者来自 Debian的unicode
命令:
$ unicode ‘’
U+2018 LEFT SINGLE QUOTATION MARK
UTF-8: e2 80 98 UTF-16BE: 2018 Decimal: ‘
‘
Category: Pi (Punctuation, Initial quote)
Bidi: ON (Other Neutrals)
U+2019 RIGHT SINGLE QUOTATION MARK
UTF-8: e2 80 99 UTF-16BE: 2019 Decimal: ’
’
Category: Pf (Punctuation, Final quote)
Bidi: ON (Other Neutrals)
Run Code Online (Sandbox Code Playgroud)