OpenCC icon indicating copy to clipboard operation
OpenCC copied to clipboard

Node.js Error: TWPhrases.ocd2 not found or not accessible

Open mattp0123 opened this issue 3 years ago • 2 comments

Error as titled. This error occurs when:

const converter = new OpenCC('s2twp.json')

mattp0123 avatar May 25 '22 13:05 mattp0123

Python, +1

Lingling-LynnChan avatar Apr 04 '23 05:04 Lingling-LynnChan

我在WSL中报错TWPhrases.ocd2 not found or not accessible,在Windows中报错access violation reading 0xFFFFFFFFFFFFFFFF,经提示可能是opencc包被安装在非ASCII路径导致的(因为我刚开始使用的UTF-8,认为非ASCII码路径不会造成影响)。在修改路径以后它工作了。希望这份迟来的回复对你和后面遇到相同问题的朋友有所帮助。

Lingling-LynnChan avatar Apr 04 '23 05:04 Lingling-LynnChan