Categories
Development Web

Character conversion in J2EE webapps

A little over a year ago I linked to a couple of articles regarding internationalisation and charactersets here. Now I’m doing the same thing all over again, and I of course forgot one small step. For a really extensive and good overview of everything check out this excellent article, read it for in depth info. What I had to do was:

  1. Always use UTF-8 codes in your property files. JRC Editor will help you with that.
  2. Create a ServletFilter that sets the character encoding for each request: req.setCharacterEncoding(“utf-8”)
  3. Set the encoding for the JSP compiler: < %@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8" %>
  4. Set the encoding for the browser to interpret: meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″

That should be it. 🙂

Categories
Development

XBean configurations

Searching for something completely else I ran across the XBean config stuff for Spring on Craig Walls blog. It shows you how to smplify your XML configurations in Spring. Something to check out soon.

Categories
Development

Snake Oiled Architecture

Grady Booch has a good post about SOA here. He called it Snake Oil-oriented Architecture, but I thought I could make it just a bit more tabloid. 😉

People jump on the SOA bandwagon because the preachers say so, when there are so many other fundamental design and architecture issues to consider before you can call your organisation and system ready for SOA. 🙂