Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-916

Cannot open File with other encoding than UTF-8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.0
    • None
    • editor - Other
    • None

    Description

      By clicking on the output  build console with message:

      — maven-compiler-plugin:3.1:compile (default-compile) @ jmf-apps —
      Changes detected - recompiling the module!
      Compiling 63 source files to /xxxxxxxxxx/target/classes
      xxxxxxxxx/AboutDialog.java:[126,76] unmappable character for encoding UTF-8

      A popup error came up and can't continue.

      org.openide.text.DataEditorSupport$1: The file xxxxxxxx/AboutDialog.java cannot be safely opened with encoding UTF-8. Do you want to continue opening it?
          at org.openide.text.DataEditorSupport.createAndThrowIncorrectCharsetUQE(DataEditorSupport.java:481)
          at org.openide.text.DataEditorSupport.loadFromStreamToKit(DataEditorSupport.java:471)
          at org.openide.text.DocumentOpenClose$DocumentLoad.atomicLockedRun(DocumentOpenClose.java:741)
          at org.openide.text.DocumentOpenClose$DocumentLoad.run(DocumentOpenClose.java:592)
          at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:296)
          at org.openide.text.NbDocument.runAtomic(NbDocument.java:411)
          at org.openide.text.DocumentOpenClose$DocumentLoad.run(DocumentOpenClose.java:632)
          at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
          at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
          at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

      Attachments

        Activity

          People

            Unassigned Unassigned
            mariano.marcolongo Mariano Marcolongo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: