0 Replies Latest reply on Aug 14, 2007 8:06 PM by EC Admin

    Encoding issue (what tier is responsible for that ?)

    EC Admin Newbie

      Hi guys,

      I'm using JBoss Seam 1.2.1GA on JBoss AS 4.0.5GA (EJB3) and Facelets for the View (as recommended in JBoss Seam Book by Michael J.Y. and Thomas H.)

      I have a problem with character encoding and I can figure out what tier is responsible for that.

      My database encoding is UTF-8.

      Then, I have a method in a Local Session Bean (EJB 3) querying the database using standard EJBQL, build up an XML output using SAX and return a String (representing the xml).

      In the client side, I have a JavaScript callback function that parse the xml and dynamically fill a HTML component.

      Here I see some strange characters that look like UTF-8 ones.

      One more hint : When I write a static page (containing accents for instance) using eclipse with UTF-8 encoding set, characters are displayed correctly in the page.

      Thanks a lot.