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.
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
Reassigning to php for further evaluation.
HTML file is saved IMHO in its defined encoding. Reassigning, please evaluate. Thanks.
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
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