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 243643 - Netbeans save file in wrong encoding
Summary: Netbeans save file in wrong encoding
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0
Hardware: PC Windows XP
: P1 normal with 1 vote (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-08 03:50 UTC by MrSir
Modified: 2014-07-11 02:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MrSir 2014-04-08 03:50:57 UTC
My project encoding is windows-1251, but netbeans save file in UTF-8 if html file has specific code.

How to reproduce this bug:

1. Create PHP project;
2. Choose project encoding as windows-1251 (russian);
3. Create file index.html and add some russian text in it;
4. Add in index.html link to external javascript file in UTF-8 encoding like this:
<script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
5. Save index.html and reopen it to make sure that file was saved in UTF-8 instead windows-1251
Comment 1 Miloslav Metelka 2014-04-10 09:49:59 UTC
Reassigning to php for further evaluation.
Comment 2 Tomas Mysik 2014-04-10 10:02:52 UTC
HTML file is saved IMHO in its defined encoding. Reassigning, please evaluate. Thanks.
Comment 3 Marek Fukala 2014-07-10 08:46:03 UTC
changeset:   275267:2a269092c3d6
user:        Marek Fukala <mfukala@netbeans.org>
date:        Thu Jul 10 10:44:56 2014 +0200
summary:     #243643 - Netbeans save file in wrong encoding
Comment 4 Quality Engineering 2014-07-11 02:21:56 UTC
Integrated into 'main-silver', will be available in build *201407110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2a269092c3d6
User: Marek Fukala <mfukala@netbeans.org>
Log: #243643 - Netbeans save file in wrong encoding