res.setContentType("text/plain");
PrintWriter out = res.getWriter();
res.setHeader("Content-Language", "es");
Locale locale = new Locale("es", "");
DateFormat fmt = DateFormat.getDateTimeInstance(DateFormat.LONG,
DateFormat.LONG,
locale);
fmt.setTimeZone(TimeZone.getDefault());
out.println("En Espa\u00f1ol:");
out.println("\u00a1Hola Mundo!");
out.println(fmt.format(new Date()));