You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And save it as ANSI encoding, PTVS will raise a BadSourceException on load when it encounters the incorrectly encoded characters. This causes the file to not open.
We should handle the failure more gracefully and replace the invalid characters with ? or \uFFFD.
The text was updated successfully, but these errors were encountered:
…ch actual encoding
Makes fallback class only return correct number of substitution characters.
Changes default encoding to UTF-8 properly.
Makes GetEncodingFromStream() (only used for the editor detection) return non-throwing encodings.
If you create a file like:
And save it as ANSI encoding, PTVS will raise a
BadSourceException
on load when it encounters the incorrectly encoded characters. This causes the file to not open.We should handle the failure more gracefully and replace the invalid characters with
?
or\uFFFD
.The text was updated successfully, but these errors were encountered: