Announcement Announcement Module
Collapse
No announcement yet.
encoding problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • encoding problem

    I'm run my app in tomcat 6.20 and all work good, but if run have encoding problem. I input russian text in field username(тест) and send request. In servlet and trace in insight i see лŒзова‚елŒ

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF8" %>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    </head>
    <body>
    <form action="/mvc/authenticate" method="post" id="form">
    <input type="text" name="j_username" id="username" />
    <input type="password" id="pwd" name="j_password" value="" />
    <input type="submit" value="Вход" class="button"/>
    </form>
    </body>

  • #2
    Hi,

    This is a Charset Issue.Most probably UTF-8 doesnt supports Russian Character.Not sure on that.Try using charset="iso-8859-1" or a different one in the META-Tag of your jsp.

    If iso-8859-1 doesnt works then try the below charsets


    <%@ page contentType="text/html; charset=CKOI8-R" %>
    OR
    <%@ page contentType="text/html; charset=windows-1251" %>

    Hope it helps

    -kartik

    Comment


    • #3
      The fact that this third-party product (JasperServer). And under the Tomcat server everything works so the problem is not encoded, and insight

      Comment

      Working...
      X