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.
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)
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
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
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.