Solved

WEBLOGIC 5.1 SP 8/Special Character Sets

Posted on 2001-08-27
18
582 Views
Last Modified: 2013-12-03
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

0
Comment
Question by:dureddyvv
18 Comments
 

Expert Comment

by:harrpreet
ID: 6430767
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
0
 
LVL 2

Expert Comment

by:ia_ia_ia_1
ID: 6431202
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?
0
 

Author Comment

by:dureddyvv
ID: 6432143
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.
0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
LVL 2

Expert Comment

by:ia_ia_ia_1
ID: 6432386
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?
0
 

Author Comment

by:dureddyvv
ID: 6432503
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>
0
 

Author Comment

by:dureddyvv
ID: 6432525
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>
0
 

Author Comment

by:dureddyvv
ID: 6432535
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>
0
 

Author Comment

by:dureddyvv
ID: 6432593
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>
0
 
LVL 2

Expert Comment

by:ia_ia_ia_1
ID: 6432604
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...
0
 

Author Comment

by:dureddyvv
ID: 6435005
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.
0
 
LVL 2

Expert Comment

by:ia_ia_ia_1
ID: 6435826
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...
0
 
LVL 2

Expert Comment

by:ia_ia_ia_1
ID: 6439583
Hey, what's up?
Have u tried changing the encoding of the stream u use to log the xmls with?
Was this your problem?
0
 

Author Comment

by:dureddyvv
ID: 6440674
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.
0
 
LVL 2

Expert Comment

by:ia_ia_ia_1
ID: 6440689
Well, the problem is solved, then?
0
 
LVL 2

Expert Comment

by:ia_ia_ia_1
ID: 6440715
Well, the problem is solved, then?
0
 

Author Comment

by:dureddyvv
ID: 6443139
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.

0
 
LVL 5

Expert Comment

by:vemul
ID: 7755853
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
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7847100
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question