WEBLOGIC 5.1 SP 8/Special Character Sets

How does Weblogic handle special character sets like spanish characters or some other languages. Does it require any special properties settings?

I'm submitting an XML which has some spanish characters  but weblogic doesnot recognize them and replaces them with a  "?".

Any Ideas on this, please let me know ASAP.

Thank you

dureddyvvAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

harrpreetCommented:
hi

I am also facing the same situation as u are in. But my problem is to pick up the physics eqns having theta, square root from DB(Access) into some kind of text format and then serialize the generated file.

Any Ideas??

thanx
ia_ia_ia_1Commented:
Would u give some more details on what you do?
As far as I know, WL does not require any properties settings considering the charsets.
How are u vizualizing the xmls (do u use xsl on them to produce html)? Are they stored in DBMS?
dureddyvvAuthor Commented:
I'm making an HTTP Request.
My input XML is "iso-8859-1" or "UTF-16" encoded.
I have track points, i.e system.out's where i log all the input paramters and log all the results for
each process and i also the return XML.
When I read the input request, I see all my spanish characters are replaced with a "?" and my output
also have the "?'s" in it.

We have International clients who post XML to our site and XML is urlencoded and the wait for the output
XML in response.
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

ia_ia_ia_1Commented:
I suppose you should check what your request's encoding is.
I think the problem is in the way the XML is carried on the net.
Won't u post some source so I could try here?
dureddyvvAuthor Commented:
Thank you!

I created a simple jsp page to test this ...
I Attached the same code here ...
I enter "?como se describiria" string and submit the page to itself and in response i recieve "ycymo se describirya"
I log this parameter in weblogic and I think when weblogic reads the request it does not read it properly.
We are using Weblogic 5.1 SP8 ...

test.jsp page
<html>
<body>
<% String param1 = request.getParameter("param1");
System.out.println("PARAM1=" + param1);
%>
Posted parameter:<%=param1%>
<p/>
<form name="frmTest" id="frmTest" method="POST" action="test.jsp">
Param1
<textarea id="param1" name="param1">
</textarea>
<br>
<input name="btnTest" type="submit" value="Submit">
</form>
</body>
</html>
dureddyvvAuthor Commented:
Thank you!

I created a simple jsp page to test this ...
I Attached the same code here ...
I enter "?como se describiria" string and submit the page to itself and in response i recieve "ycymo se describirya"
I log this parameter in weblogic and I think when weblogic reads the request it does not read it properly.
We are using Weblogic 5.1 SP8 ...

test.jsp page
<html>
<body>
<% String param1 = request.getParameter("param1");
System.out.println("PARAM1=" + param1);
%>
Posted parameter:<%=param1%>
<p/>
<form name="frmTest" id="frmTest" method="POST" action="test.jsp">
Param1
<textarea id="param1" name="param1">
</textarea>
<br>
<input name="btnTest" type="submit" value="Submit">
</form>
</body>
</html>
dureddyvvAuthor Commented:
Thank you!

I created a simple jsp page to test this ...
I Attached the same code here ...
I enter "?como se describiria" string and submit the page to itself and in response i recieve "ycymo se describirya"
I log this parameter in weblogic and I think when weblogic reads the request it does not read it properly.
We are using Weblogic 5.1 SP8 ...

test.jsp page
<html>
<body>
<% String param1 = request.getParameter("param1");
System.out.println("PARAM1=" + param1);
%>
Posted parameter:<%=param1%>
<p/>
<form name="frmTest" id="frmTest" method="POST" action="test.jsp">
Param1
<textarea id="param1" name="param1">
</textarea>
<br>
<input name="btnTest" type="submit" value="Submit">
</form>
</body>
</html>
dureddyvvAuthor Commented:
Thank you!

I created a simple jsp page to test this ...
I Attached the same code here ...
I enter "?como se describiria" string and submit the page to itself and in response i recieve "ycymo se describirya"
I log this parameter in weblogic and I think when weblogic reads the request it does not read it properly.
We are using Weblogic 5.1 SP8 ...

test.jsp page
<html>
<body>
<% String param1 = request.getParameter("param1");
System.out.println("PARAM1=" + param1);
%>
Posted parameter:<%=param1%>
<p/>
<form name="frmTest" id="frmTest" method="POST" action="test.jsp">
Param1
<textarea id="param1" name="param1">
</textarea>
<br>
<input name="btnTest" type="submit" value="Submit">
</form>
</body>
</html>
ia_ia_ia_1Commented:
I gotta go now :(
I'll take a look at it tomorrow...

U could try adding:
<%@ page contentType="text/html; charset=ISO-8859-1" %> directive to your jsps in order to set the proper charset to the streams that are carrying the requests meanwhile...
dureddyvvAuthor Commented:
I think I found out the problem..
Weblogic 5.1 SP 8 has some bugs handling it.
They fixed it in SP 9.
Any Ideas's are welcomed and I appreciate for your time.
ia_ia_ia_1Commented:
Hi again.
As far as I have understood the problem is in the logging of the xml, right?
This is what I have found:
1. I've logged some special characters in a file and when the font subset is changed accordingly (i.e. LATIN-1 for ISO-8859-1) they could be seen alright.
2. Hence the problems might lay in the way characters are written to the file. I've tried changing the test jsp so:
<%@ page contentType="text/html; charset=ISO-8859-1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<body>
<% String param1 = request.getParameter("param1");
System.out.println("PARAM1=" + param1);
        FileOutputStream str = new FileOutputStream("C:/temp/test.log");
        OutputStreamWriter writer = new OutputStreamWriter(str, "ISO-8859-1");
        writer.write(writer.getEncoding()+":"+param1);
          writer.close();

%>
Posted parameter:<%=param1%>
<p/>

<form name="frmTest" id="frmTest" method="POST" action="test.jsp">
Param1
<textarea id="param1" name="param1">
</textarea>
<br>
<input name="btnTest" type="submit" value="Submit">
</form>
</body>
</html>

The special characters seem to be written properly...
I will try to experiment a little further after lunch :)
If I have not understood properly the problem, please, let me know...
ia_ia_ia_1Commented:
Hey, what's up?
Have u tried changing the encoding of the stream u use to log the xmls with?
Was this your problem?
dureddyvvAuthor Commented:
One of the problem was this, but the main problem was Weblogic was not returning the special characters back to the browser with post method, but was working fine with get method.

This is a bug in weblogic 5.1 SP8 and they claim they fixed it in SP9.

Thank you very much and I appreciate for your time.
ia_ia_ia_1Commented:
Well, the problem is solved, then?
ia_ia_ia_1Commented:
Well, the problem is solved, then?
dureddyvvAuthor Commented:
Yeah Kind off, we are in prod. with SP8 and that could be issue upgrading to SP9.
It took me couple of days, anyhow thank you very much in helping to resolve this issue.

vemulCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- To be PAQ'ed and points refunded

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

vemul
Cleanup Volunteer
SpideyModCommented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.