Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Special Characters in JAXB Classes

Prasanna GSep 4 2012 — edited Sep 4 2012
Hi,

I have generated Java bean classes from an xml schema using JAXB 2.0 Content Model feature in Jdeveloper 11g. I have another class, which has a method testMethod which takes the Java Bean class object as input. I have exposed this method as java webservice. I am just printing the FirstName from the input I have got.

public String testMethod(TestBean testbean) {

testBean,getContact().getFirstName();

}

When there are some special characters like �, my java bean accepts and displays as �. I printed the value directly in my getter method, but it prints differently.
How can I set my Java Bean class to use ISO-8859-1 as encoding
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 2 2012
Added on Sep 4 2012
1 comment
319 views