struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stjepan Brbot" <stjepan.br...@ht.hr>
Subject Re: struts turkish character problem
Date Mon, 05 Jul 2004 16:47:14 GMT
<%@ page contentType="text/html; charset=windows-1250" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"  prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<html:html locale="true">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"/>
  <title><bean:message key="App.title"/></title>
</head>

Do you have charset encoding defined for JSP (for encoding content):

<%@ page contentType="text/html; charset=windows-1250" %>

as well in META tag to instruct browser how to present the content:

  <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"/>

SB

"Eyup TEKIN" <tekin@yfas.com.tr> wrote in message news:000901c4600a$9305b220$cac1c1c1@EYUP2000...
> hi
> there is a webapp including oracledatabase(datas are hold with turkish
> character) ejbs on borlandapplicationserver ,tomcat,struts and jsps.
> i can write turkish character in jsp page side.but dynaaction form creates a
> selection list.and that list cant show turkish character.in tomcat's
> catalina.sh file there is a "-Dfile encoding=1254" parameter.and i wrote in
> the struts part below convertion
> 
> "
> byte[] s0_byte = satirArray[0].getBytes("Cp1254");
> satirArray [1]= new String(s1_byte, "Cp1252");
> "
> i solved problem but how can i solve this problem in another way? maybe
> general solution will be beter.
> 
> sincerely


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message