Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix encoding errors #554

Closed
wants to merge 1 commit into from
Closed

Fix encoding errors #554

wants to merge 1 commit into from

Conversation

matteodelabre
Copy link

On Windows, when gyp reads and writes vcxproj files, it messes up with the encodings, because the generated XML files are stored as Latin-1 files instead of UTF-8.

It can become problematic since project files often contain paths, and paths can contain accented characters that are handled differently between Latin-1 and UTF-8. This PR addresses the issue by converting encoding to UTF-8 right before the file is saved.

This problem is not new, it has already been reported in issues #297, #404, #476 atom/atom#1937, AudioNet/node-core-audio#27, and many others. Pull request #366 was sent a year ago as an attempt to fix the problem, but wasn't taken into consideration. Two years after the initial report, this important issue remains unsolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants