struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pham Anh Tuan" <>
Subject [HELP] the problem with I18n
Date Wed, 09 Nov 2005 02:42:49 GMT
hi all,

I got a problem with I18n, the browser couldn't automatically turn UTF-8 encoding on when
jsp page is showed, so, the content is showed incorrectly :( ... If I want the content to
show correctly, I must change the encoding setting of the browser to UFT-8, I tested on IE,
Firefox, the result is the same above :(

so, for you clearly understand about my problem, below is my configuration:

 <!-- setting up Struts servlet   -->


 <!-- Map *.do files -->


 <!-- default page load -->

  <!--  go to homepage -->
  <forward name="goToHomepage" path="/vm/MyJsp.jsp"
   redirect="true" contextRelative="true" />

 <message-resources parameter="properties.languages_vn" />

<%@ taglib uri="struts-bean" prefix="bean" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    This a struts page. <br>
    <bean:message key="welcome"/>

------------------------------------------------- - save with UTF-8 encoding

what happened :( ... help me :(


View raw message