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 - [80cat] Default encoding
Summary: [80cat] Default encoding
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 8.0
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-05 20:59 UTC by muellermi
Modified: 2014-01-09 22:12 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
IDE log (67.55 KB, text/plain)
2013-12-05 21:00 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
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