Polish characters are gets changed to ? in websphere6.1 environment
kiran_kumar
Greenhorn
Joined: Apr 21, 2008
Posts: 18
posted
0
In my application, for the name field I entered polish characters eg: ŁĄSŻKIĘWIĆZIUŚ and language is polish. I navigated to one tab to the other. The polish characters are getting changed to ?. Please help me to resolve the problem
The only other two significant differernce would be the JVM and the data source helper class. WebSphere will be using an IBM JVM and (usually) wraps all datasource access through a helper class. However, I'm currently looking at at WebSphere/Oracle combination that is showing (what I understand to be) valid Polish characters so I'm assuming these two things are fine. If your application stack uses Unicode through out, and your HTML pages correctly set the charset in a meta tag then this should just work. The only other thing that might cause an issue is if the client you use can't support Polish - but presumably you are accessing your weblogic and webshpere apps from the same client?
Not sure what else to suggest. It sounds like somewhere in your application's string handling you are doing something unsafe, and the difference between the environments is exposing it. Do you use getBytes anywhere? Or the new String(byte[] bytes) constructor?
it looks like it does. And in fact it will override for all apps on that server, which is very devious, so maybe its not the best thing to use.
Back to the original question, as has been mentioned there maybe something in the application breaking it. I found searching for ByteArrayOutputStreams and similar classes found a lot of the problems.
kiran_kumar
Greenhorn
Joined: Apr 21, 2008
Posts: 18
posted
0
I tried by setting jvm arguments.. but it is not working.
I am using jsf page.. Polish characters are displaying correctly in a label i.e. <trutputLabel used for that.
But the same polish characters are converting into ? in a text box i.e. ><tr:inputText
This is happening when i move from one tab to other tab. If i do refresh on the page polish characters are coming correctly.
kiran_kumar wrote:I tried by setting jvm arguments.. but it is not working.
I am using jsf page.. Polish characters are displaying correctly in a label i.e. <trutputLabel used for that.
But the same polish characters are converting into ? in a text box i.e. ><tr:inputText
This is happening when i move from one tab to other tab. If i do refresh on the page polish characters are coming correctly.
Is there any JavaScript involved? Some JavaScript method specifically target the latin characterset- there are alternative methods that support multibyte characters.