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 234624

Summary: Javascript etidor don't save as UTF-8 with BOM
Product: javascript Reporter: DanjaKeiras
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description DanjaKeiras 2013-08-20 08:59:07 UTC
I'm a newbie to JSF thou...
write a javascript including multi-byte language on NB, and save the code, NB generates a file as UTF-8 without BOM. So, when running my JSF including such code (external javascript file), muiti-byte language don't be displayed properly.
collapse!

test.js:
document.write("日本語");

and include into a .xhtml:
<script type="text/javascript" src="test.js"></script>

display result:
日本語

open the test.js on Notepad (on windows) and save the file as UTF-8 again, test.js is saved with BOM. then test.js is displayed properly.

my environment:
NB 7.3.1
OS: windows 7
server: glassfish 4.0