我正在尝试使用 aspell
来检查文本中的拼写。我有一个包含例外的自定义词典。它们都是 ASCII 编码,但是有一个单词是 Unicode 编码的 (foo.en.pws
):
personal_ws-1.1 en 554
Foo
bar
Bárbara
然后,我运行:
cat x.txt | aspell -a --encoding=utf-8 -p ./foo.en.pws
我得到了:
Error: ./foo.en.pws: The word "Bárbara" is invalid.
The character '�' (U+A1) may not appear in the middle of a word.
我该怎么办?