This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
To prevent various ugly hacks spread over the codebase (like org.netbeans.modules.diff.EncodedReaderFactory or org.netbeans.modules.tasklist.providers.SuggestionContext), we should have an API to be able to retrieve the encoding of a file content.
Issue #56318 could be solved in a much cleaner way if we have an API for that.
*** This issue has been marked as a duplicate of 19928 ***
Wrong issue.
*** This issue has been marked as a duplicate of 42638 ***