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 203343 - Project panel should highlight files with encoding different from project default
Summary: Project panel should highlight files with encoding different from project def...
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-08 06:10 UTC by paolosca
Modified: 2011-10-08 06:10 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description paolosca 2011-10-08 06:10:32 UTC
I came across a few performance issues due files with different encoding from the project default. See 201940 and 202611.

This can happen if using third party libraries such as TCPDF (which is encoded in ISO-8859-15) in a UTF-8 project.

I noticed that only a handful of files in TCPDF have this problem because most of them just contain ASCII characters and can be opened in any encoding without problems.

To fix this problem I now need to open all the files in the library one by one to detect which one I have to convert, it's a long and tedious job that wastes lots of time.

It would be very useful if the alien encoding files where detected during indexing and highlighted in some way in the project panel, maybe they could be marked with the red exclamation mark as when the file as syntax errors (or with a yellow exclamation point).

The user will then notice that there is a problem with the file and when he attempts to opened it the usual "the file cannot be safely opened" warning will popup hinting the user that it needs to be converted.

Even better would be a wizard to convert the file from the original encoding to the default one when such a file is opened, but I reckon it's probably not worth the trouble.

Regards,

Paolo