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.

Bug 195765

Summary: [70cat] org.openide.text.DataEditorSupport$1: The file cannot be safely opened with encoding UTF-8. Do you want to continue opening it?
Product: platform Reporter: amnesyac
Component: Data SystemsAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED DUPLICATE    
Severity: normal CC: azizur, Ervis_Tusha, FabianBlechschmidt, gently, jtulach, pekarna, static_void, vv159170, Wierrat
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 176888
Attachments: stacktrace

Description amnesyac 2011-02-21 14:04:28 UTC
This bug was originally marked as duplicate of bug 193476, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001)
VM: Java HotSpot(TM) Client VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows 7

User Comments:
GUEST: SVN update.

pekarna: Clicked on the link in a Maven-based project build log.
Probably related to the content of the file, perhaps encoding conversion error.

COMPILATION ERROR : 
-------------------------------------------------------------
com/rapidlime/pohlidame/web/panel/registrace/RegistrationMailSender.java:[16,18] unmappable character for encoding utf-8

GUEST: try to redirect to function by press ctrl+mouse click

FabianBlechschmidt: tried to jump to the definition of the class via Command + Click on "new CLASSNAME"

static_void: PHP project: tried to move to an overridden method (clicked an icon).

"The file cannot be safely opened with encoding UTF-8" - I get those warnings sometimes, maybe because files contain cyrillic characters. However, those files seem ok to me.

amnesyac: Ctrl+Click on require_once file path. Expected to navigate to this file, but error ocquired.

GUEST: ????

GUEST: I try to open utf8 source file by CTRL+click on method in cp1251 source file. I guess it should be yes/no question, but exception given.

Wierrat: file have incorrect cp1251 encoding




Stacktrace: 
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.loadFromStreamToKit(DataEditorSupport.java:434)
   at org.openide.text.CloneableEditorSupport.loadDocument(CloneableEditorSupport.java:2156)
   at org.openide.text.CloneableEditorSupport.access$2800(CloneableEditorSupport.java:133)
   at org.openide.text.CloneableEditorSupport$Listener.run(CloneableEditorSupport.java:2986)
   at org.openide.text.CloneableEditorSupport$3.doRun(CloneableEditorSupport.java:710)
   at org.openide.text.CloneableEditorSupport$3.run(CloneableEditorSupport.java:677)
Comment 1 amnesyac 2011-02-21 14:04:33 UTC
Created attachment 106245 [details]
stacktrace
Comment 2 Jaroslav Tulach 2011-02-26 15:28:59 UTC
Vladimir, I guess this is your code, right?
Comment 3 Vladimir Voskresensky 2011-02-26 20:09:37 UTC
What is exactly the issue? Dialog which asks user?

Could someone attach file which report a problem?

Thanks,
Vladimir.
Comment 4 Vladimir Voskresensky 2011-03-03 11:34:38 UTC
I think it's an issue we've found in our tests as well

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