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 205761 - org.openide.text.DataEditorSupport$1: The file cannot be safely opened with encoding UTF-8. Do you want to continue opening it?
Summary: org.openide.text.DataEditorSupport$1: The file cannot be safely opened with e...
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-01 09:54 UTC by marcomsousa
Modified: 2011-12-05 07:18 UTC (History)
15 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 183319


Attachments
stacktrace (1.21 KB, text/plain)
2011-12-01 09:54 UTC, marcomsousa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marcomsousa 2011-12-01 09:54:34 UTC
This bug was originally marked as duplicate of bug 200398, 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.1 RC1 (Build 201111242103)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows 7

User Comments:
GUEST: ?????????????

enydrueda: open python project, and another with git plugin

GUEST: index.php

line
-----------------------
require_once("config.php");
---------------------------
ctrl+click on "config.php"

lalbertme: Refectoring in linux

cristian_radulescu: CTRL+click to open class of instantiated object

GUEST: Opening the file

GUEST: step into a method

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

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

GUEST: click with shift key over a function.

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




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.createAndThrowIncorrectCharsetUQE(DataEditorSupport.java:505)
   at org.openide.text.DataEditorSupport.loadFromStreamToKit(DataEditorSupport.java:496)
   at org.openide.text.CloneableEditorSupport.loadDocument(CloneableEditorSupport.java:2128)
   at org.openide.text.CloneableEditorSupport.access$2800(CloneableEditorSupport.java:129)
   at org.openide.text.CloneableEditorSupport$Listener.run(CloneableEditorSupport.java:2929)
   at org.openide.text.CloneableEditorSupport$3.doRun(CloneableEditorSupport.java:722)
Comment 1 marcomsousa 2011-12-01 09:54:37 UTC
Created attachment 113687 [details]
stacktrace
Comment 2 psc1952 2011-12-04 00:50:55 UTC
I am having this problem with Java source code that contains the copyright symbol; the one that is in the upper character range.
Comment 3 psc1952 2011-12-04 03:26:16 UTC
I am getting this message on an existing Java file that contains the copyright
symbol. Does not happen in Eclipse.
Comment 4 Jaroslav Tulach 2011-12-05 07:18:51 UTC
Attach the part of your file that is causing problems.