facebook

[Tip] JSP Char Encoding under Weblogic

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #238521 Reply

    ehudt
    Member

    Hi all,

    Im doing some development using weblogic + struts, of a web site written in Hebrew.

    I have set in my Jsp’s the following:
    pageEncoding=”WINDOWS-1255″.

    Im facing a problem, that althogh the jsp’s are shown fine on the browser with Hebrew text, the values i set to the text fields in forms, arrive to the server with ???? replacing the text i add in Hebrew.

    These are the printings im getting:

    Default encoding: Cp1255
    Lang: iw_IL
    UserName: ???????

    I know its a charset issue, but cant seem to understand which property i have wrong. Any iseas ?

    Thanks, Ehud.

    #238575 Reply

    Kapil Kapre
    Member

    Is your bean running on an OS /o unicode support?

    #238587 Reply

    Riyad Kalla
    Member

    Ehud,
    Try setting your pageEncoding to “cp1255”

    #238704 Reply

    ehudt
    Member

    Hi again,

    I have solved the issue by setting the below in weblogic.xml.

    Thanks for the effort.

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <weblogic-web-app>
    <jsp-descriptor>
    <encoding>Cp1255</encoding>
    </jsp-descriptor>
    <charset-params>
    <input-charset>
    <resource-path>/*</resource-path>
    <java-charset-name>Cp1255</java-charset-name>
    </input-charset>
    </charset-params>
    </weblogic-web-app>

    #238732 Reply

    Riyad Kalla
    Member

    Thank you for following up with your solution for others to see as well.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Tip] JSP Char Encoding under Weblogic

You must be logged in to post in the forum log in