Solved

WEBLOGIC 5.1 SP 8/Special Character Sets

Posted on 2001-08-27
18
572 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 2

Expert Comment

by:ia_ia_ia_1
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:dureddyvv
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Well, the problem is solved, then?
0
 
LVL 2

Expert Comment

by:ia_ia_ia_1
Comment Utility
Well, the problem is solved, then?
0
 

Author Comment

by:dureddyvv
Comment Utility
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
Comment Utility
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
Comment Utility
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now