OpenCC
OpenCC copied to clipboard
Node.js Error: TWPhrases.ocd2 not found or not accessible
Error as titled. This error occurs when:
const converter = new OpenCC('s2twp.json')
Python, +1
我在WSL中报错TWPhrases.ocd2 not found or not accessible,在Windows中报错access violation reading 0xFFFFFFFFFFFFFFFF,经提示可能是opencc包被安装在非ASCII路径导致的(因为我刚开始使用的UTF-8,认为非ASCII码路径不会造成影响)。在修改路径以后它工作了。希望这份迟来的回复对你和后面遇到相同问题的朋友有所帮助。