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.
loadImage() unable to read file with non-ANSI filepath. · Automattic/node-canvas#1979 | Good First Issue