[jboss-user] [JBoss Seam] - Encoding issue (what tier is responsible for that ?)

rcherchi do-not-reply at jboss.com
Tue Aug 14 20:06:14 EDT 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074230#4074230

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074230



More information about the jboss-user mailing list