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 239174

Summary: [80cat] Default encoding
Product: serverplugins Reporter: muellermi <muellermi>
Component: GlassFishAssignee: TomasKraus
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 8   
Issue Type: TASK Exception Reporter:
Attachments: IDE log

Description muellermi 2013-12-05 20:59:57 UTC
Product Version = NetBeans IDE Dev (Build 201312050002)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08

NB defaults to UTF-8, and same is used on creating a JSF page with the NB wizard. But GlassFish 4 defaults to iso-8859-1. This leads to problems if a user enters characters which are coded with more than one byte, e.g. German umlauts.The solution is to add a sun-web.xml or glassfish-web.xml and to change the default encoding to UTF-8. I bloged about this problem (small project to enforce this problem) at http://blog.mueller-bruehl.de/web-development/glassfish-4-and-utf-8/

Now this is my proposal:

Whilst creating a new web application with GlassFish 4 and the project's default encoding is UTF-8 (= NB standard), the NB wizard should create the GF configuration file and add the default-encoding of UTF-8.
Comment 1 muellermi 2013-12-05 21:00:19 UTC
Created attachment 142888 [details]
IDE log