Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 206876 - [71cat] org.openide.text.DataEditorSupport$1: The file cannot be safely opened with encoding UTF-8. Do you want to continue opening it?
[71cat] org.openide.text.DataEditorSupport$1: The file cannot be safely opene...
Status: RESOLVED DUPLICATE of bug 153498
Product: python
Classification: Unclassified
Component: Editor
All All
: P2 (vote)
: 8.1
Assigned To: Lou Dasaro
: 208966 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2012-01-03 15:28 UTC by paolosca
Modified: 2015-04-20 17:52 UTC (History)
58 users (show)

See Also:
Issue Type: DEFECT

stacktrace (1.21 KB, text/plain)
2012-01-03 15:28 UTC, paolosca
stacktrace (3.83 KB, text/plain)
2012-02-20 00:09 UTC, javydreamercsw
stacktrace (1.34 KB, text/plain)
2012-05-21 22:15 UTC, javydreamercsw
stacktrace (1.33 KB, text/plain)
2012-06-12 14:52 UTC, javydreamercsw
stacktrace (1.21 KB, text/plain)
2012-06-27 21:38 UTC, misterm
stacktrace (1.21 KB, text/plain)
2012-06-27 21:41 UTC, misterm
stacktrace (1.21 KB, text/plain)
2012-06-28 18:41 UTC, misterm
stacktrace (1.25 KB, text/plain)
2012-10-15 13:59 UTC, kosmonaffft
stacktrace (1.29 KB, text/plain)
2013-05-16 07:07 UTC, medeag

Note You need to log in before you can comment on or make changes to this bug.
Description paolosca 2012-01-03 15:28:04 UTC
This bug was originally marked as duplicate of bug 205761, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201201020601)
VM: OpenJDK Client VM, 21.0-b17, OpenJDK Runtime Environment, 1.7.0_147-icedtea-b147
OS: Linux

User Comments:
gtzabari: Exception thrown when attempting to open file. File does not open.

GUEST: Opening the file

enydrueda: open python project, and another with git plugin

GUEST: ?????????????

GUEST: click with shift key over a function.

GUEST: Navigate -> Find Declaration on a function in PHP file

Lolo_101: A warning is ok, but i'd like to be able to open the file anyway !

cristian_radulescu: CTRL+click to open class of instantiated object

GUEST: index.php

ctrl+click on "config.php"

paolosca: Opened refactoring rename

GUEST: clicked Compilation error line link in the output window.

GUEST: step into a method

lalbertme: Refectoring in linux

org.openide.text.DataEditorSupport$1: The file cannot be safely opened with encoding UTF-8. Do you want to continue opening it?
   at org.openide.text.DataEditorSupport.createAndThrowIncorrectCharsetUQE(
   at org.openide.text.DataEditorSupport.loadFromStreamToKit(
   at org.openide.text.CloneableEditorSupport.loadDocument(
   at org.openide.text.CloneableEditorSupport.access$2800(
   at org.openide.text.CloneableEditorSupport$
   at org.openide.text.CloneableEditorSupport$3.doRun(
Comment 1 paolosca 2012-01-03 15:28:08 UTC
Created attachment 114587 [details]
Comment 2 javydreamercsw 2012-02-20 00:09:58 UTC
Created attachment 115930 [details]

Opening files
Comment 3 enomigolzar 2012-02-22 09:05:18 UTC
i generate a new project java ee with Imports an existing Enterprise application client into a standard IDE project. My problem is a compile error " unmappable character for encoding UTF-8":
If i try to open the file i get:
The file cannot be safely opened with encoding UTF-8. Do you want to continue opening it?
Comment 4 Jaroslav Tulach 2012-03-01 16:19:59 UTC
DataSupportEditor throws regular UserQuestionException, which is an IOException. The proper behavior of the code should be to cache UserQuestionException, ask the user and re-run the action. This is documented at

The callers that need to deal with UserQuestionException include:



Most of the recent problems seem to be caused by Gian Luca, but rather moving to Gsf as that is our code and we can fix it.
Comment 5 Jaroslav Tulach 2012-03-01 17:38:30 UTC
*** Bug 208966 has been marked as a duplicate of this bug. ***
Comment 6 Milutin Kristofic 2012-03-13 14:05:07 UTC
It's fixed in csl in org.netbeans.modules.csl.spi.GsfUtilities. This is a bug in gsf which is in contrib, therefore I reassign it to python.
Comment 7 javydreamercsw 2012-05-21 22:15:09 UTC
Created attachment 119709 [details]

Formatting a project (right click on project)
Comment 8 javydreamercsw 2012-06-12 14:52:47 UTC
Created attachment 120738 [details]

Clciked on link in output window after a Maven compilation error (Unmappable character for encoding UTF-8)

I believe is a ?
Comment 9 misterm 2012-06-27 21:38:07 UTC
Created attachment 121470 [details]
Comment 10 misterm 2012-06-27 21:41:07 UTC
Created attachment 121471 [details]
Comment 11 misterm 2012-06-28 18:41:03 UTC
Created attachment 121511 [details]
Comment 12 kosmonaffft 2012-10-01 14:46:22 UTC
I've seen similar exception in CND module when try to reformat sources in all project... See bug
Comment 13 kosmonaffft 2012-10-15 13:59:15 UTC
Created attachment 125971 [details]
Comment 14 medeag 2013-05-16 07:07:58 UTC
Created attachment 134493 [details]

click on the warning while buildling maven app
Comment 15 Lou Dasaro 2015-04-20 17:52:34 UTC
Because this is now assigned to Python, I am resolving it as a DUPLICATE of the Umbrella Bug 153498 - "Provide support for UTF-8", which is now being addressed.

If this problem affects you, please follow it there.
If this is a non-Python problem, please search for "UTF" and the product affected or file a new bug. Thank you.

*** This bug has been marked as a duplicate of bug 153498 ***

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo