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 195868 - incorrect encoding detection
Summary: incorrect encoding detection
Status: RESOLVED DUPLICATE of bug 190569
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2011-02-23 14:41 UTC by subdigger
Modified: 2011-09-19 11:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
diff in NetBeans and Kate (120.46 KB, image/jpeg)
2011-02-24 09:25 UTC, subdigger
Details
encoding of project win 1251 (107.00 KB, image/jpeg)
2011-02-24 11:49 UTC, subdigger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description subdigger 2011-02-23 14:41:37 UTC
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
Comment 1 subdigger 2011-02-24 09:25:43 UTC
Created attachment 106394 [details]
diff in NetBeans and Kate

the same file in NetBeans and Kate in cp1251
Comment 2 David Strupl 2011-02-24 10:45:53 UTC
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.
Comment 3 subdigger 2011-02-24 11:49:56 UTC
Created attachment 106404 [details]
encoding of project win 1251
Comment 4 subdigger 2011-02-24 11:52:20 UTC
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?
Comment 5 David Strupl 2011-02-28 12:08:13 UTC
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).
Comment 6 subdigger 2011-02-28 12:26:43 UTC
(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?
Comment 7 subdigger 2011-03-01 10:38:04 UTC
... even if the file in path of one of projects, witch currently closed - the same problem with encoding
Comment 8 subdigger 2011-03-14 13:09:45 UTC
... so what about solvation?
Comment 9 Jiri Prox 2011-09-19 11:29:59 UTC
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 ***