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.
URLDataObjects do not have encoding defined so the project's encoding is used for them. This is not good - ISO Latin 1 (ISO-8859-1) encoding should be used for all URL objects.
what is the user scenario for this that problems might be seen ? (want to see if this is related to some other things seen and to know for testing this when its fixed. since iso-8859-1 needs to be used, does it mean that file names or paths with non ascii cannot be used in nb, for things that would become a url that is based on those file names or paths ? ken.frank@sun.com
Probably UTF-8 should be used in all cases for these. They are not edited as text, they are not part of projects, they are just used for menu registration from module XML layers.
I agree. I will setup the URL DataObjects to always use UTF-8.
I will add it to Milestone 2 of NB 6.1.
Created attachment 55141 [details] source code patch
Fixed in the trunk. All URLDataObjects now have a simple implementation of FileEncodingQueryImplementation in their lookup. This implementation returns encoding UTF-8 for any file.