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 204762 - Wrong unicode characters on active tab after NetBeans is loaded
Summary: Wrong unicode characters on active tab after NetBeans is loaded
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 11:16 UTC by dj_pilgrim
Modified: 2013-08-28 12:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Wrong unicode text after NetBeans is loaded (758.32 KB, image/jpeg)
2011-11-07 11:16 UTC, dj_pilgrim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dj_pilgrim 2011-11-07 11:16:52 UTC
Created attachment 112917 [details]
Wrong unicode text after NetBeans is loaded

There is a some issue with unicode characters on active file tab after NetBeans is loaded.

What I normaly to do:
1) I'm working with NetBeans IDE 7.0.1. I'm using NetBeans projects with UTF-8 encoding.
2) I closed NetBeans with opened files in tabs.
3) When I open NetBeans again, the file in the first tab what was I wrote with unicode characters is damaged. Every unicode character is broken.

See the attached screenshot.
I'm using NetBeans 7.0.1 for PHP in Czech, Windows 7 x64 (CZ)
Comment 1 Vladimir Voskresensky 2011-11-07 12:38:24 UTC
I think it occurs when you close Welcome page and ask it not to open on startup, right?
Then the last opened file is reopened on the next IDE restart.
Encoding query for this file is calculated incorrectly, because project are not yet loaded.

workaround is to close and open file again.

From infrastructure side, I think it can be solved, by persisting encoding of the last opened file and use it on ide restart
Comment 2 dj_pilgrim 2011-11-07 12:49:27 UTC
Hello Vladimir,

Thank you for your fast response.
I have disabled Welcome page on startup.

(In reply to comment #1)
> I think it occurs when you close Welcome page and ask it not to open on
> startup, right?
> Then the last opened file is reopened on the next IDE restart.
> Encoding query for this file is calculated incorrectly, because project are not
> yet loaded.
> 
> workaround is to close and open file again.
> 
> From infrastructure side, I think it can be solved, by persisting encoding of
> the last opened file and use it on ide restart
Comment 3 Miloslav Metelka 2013-08-28 12:31:54 UTC
Cannot reproduce. It might be that now the files aren't opened by using ProjectOpenedHook in which case this issue should no longer occur.
If the problem would reappear please reopen the issue.