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.
Product Version = NetBeans IDE 6.9.1 (Build 201011082200) Operating System = Linux version 2.6.34.7-0.7-desktop running on i386 Java; VM; Vendor = 1.6.0_23 Runtime = Java HotSpot(TM) Client VM 19.0-b09 when open a single file by menu File->Open file IDE apply utf-8 encoding, but file in cp1251
Created attachment 106394 [details] diff in NetBeans and Kate the same file in NetBeans and Kate in cp1251
The IDE has the encoding set as per-project property. Whatever you set in your project is used for opening files. There is no detection of encoding.
Created attachment 106404 [details] encoding of project win 1251
1. as shown in second attach, the encoding of opened project is windows-1251 2. If there are 2 or more projects are opened with different encodings witch one will be selected?
The IDE tries to find out to which project the file belongs (based on directory structure). If it does not belong to any project the default for given platform is used (if I am not mistaken).
(In reply to comment #5) > The IDE tries to find out to which project the file belongs (based on directory > structure). If it does not belong to any project the default for given platform > is used (if I am not mistaken). my system default is utf-8. file, we are talkin about, not in any project path but i still want to see it in it`s own encoding... Else what for the functionality of File->Open?
... even if the file in path of one of projects, witch currently closed - the same problem with encoding
... so what about solvation?
Such functionality is not supported now. There is already filled and enhancement requesting such feature *** This bug has been marked as a duplicate of bug 190569 ***