iconv 错误消息中的“位置”是什么意思?

xgd*_*gsc 6 editors emacs character-encoding text-processing

转换大文件时出现错误:

$ iconv -f GB2312 -t UTF-8 2001.txt -o 2001_u.txt
iconv: illegal input sequence at position 245256667
Run Code Online (Sandbox Code Playgroud)

这个错误中的位置是什么意思?我试过不是行号。如何在其他工具或编辑器(如 emacs)中获得该职位?

Fre*_*rdt 5

它是文件的 245256667 字节。如果您执行以下操作:

dd if=2001.txt of=error.txt bs=1 count=10 skip=245256667
Run Code Online (Sandbox Code Playgroud)

您应该能够通过执行以下操作来查看无效的 utf8 序列 hexdump -C error.txt