Node.js basicsFamiliarity with Windows file pathsC++ basics
新手友好度1-100 的估计分数,表示该议题对首次贡献者的友好程度。
30
研究方向
The issue is that loadImage() fails for non ANSI filepaths on Windows. Look at the C++ source code for image loading, likely in src/Canvas.cc or Image.cc, to see how the file path is converted from JavaScript string to native. Check if there's use of ASCII only functions or if UTF 8 encoding is handled. Also review any existing PRs or comments in the issue for clues. A fix might involve using WideCharToMultiByte to handle Unicode paths on Windows.