problem is that file is not saved in encoding you have declared. when you want to use UTF-8 your page must be writen in that encoding. Try to save it in some editor which supports saving in different encodings (f.e. jEdit).
Feky ----- Original Message ----- From: "wojtek" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 23, 2002 10:05 PM Subject: Re: CHARACTER ENCODING ! > Ok Peter great, but I am using tomcat which gives this errror message when > setting encoding to utf-8 > > A Servlet Exception Has Occurred > org.apache.jasper.compiler.ParseException: Cannot read file: ze file > at org.apache.jasper.compiler.JspReader.pushFile2(Unknown Source) > at org.apache.jasper.compiler.JspReader.(Unknown Source) > at org.apache.jasper.compiler.Parser.(Unknown Source) > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, January 23, 2002 9:55 PM > Subject: RE: CHARACTER ENCODING ! > > > > i've tested this with german/french/spanish, should work for polish, here > is > > the first few lines from a jsp: > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > > <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> > > <%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> > > <%@page import="com.bmw.uif.*" contentType="text/html; charset=utf-8"%> > > <html:html> > > > > <head> > > <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> > > > > > > Pete Zybrick > > > > -----Original Message----- > > From: wojtek [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, January 23, 2002 3:53 PM > > To: Struts Users Mailing List > > Subject: Re: CHARACTER ENCODING ! > > > > > > Hi, > > > > My JSP looks like that: > > > > <%@ page contentType="text/html; charset=iso-8859-2" %> > > > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > > > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > > > > <html:html locale="true"> > > > > > > > > I am also setting request.setCharacterEncoding("ISO-8859-2") in > > every possible place ! > > > > > > > > Still the output from the forms is ???? instead of Polish chars . > > > > > > > > Anyone have got the idea what's wrong ! > > > > > > > > regards > > > > > > > > Wojtek > > > > > > > > ----- Original Message ----- > > From: "Martin Fekete" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Wednesday, January 23, 2002 10:51 AM > > Subject: Re: CHARACTER ENCODING ! > > > > > > > in JSP you should use page directive <%@ page contentType="text/html; > > > charset=your encoding here" %> > > > > > > and property files must be converted to acii (f.e. using > > > %JAVA_HOME%/bin/native2ascii.exe) > > > > > > Feky > > > > > > ----- Original Message ----- > > > From: "Christopher Cheng" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Cc: "wojtek" <[EMAIL PROTECTED]> > > > Sent: Wednesday, January 23, 2002 3:10 AM > > > Subject: RE: CHARACTER ENCODING ! > > > > > > > > > Same here. I am building a site using English, Traditional and > Simplified > > > Chinese. It is fine if I do not set the encoding to "big5" or whatever > in > > > JSP header, but I have to manually change the encoding in IE. What is > > > strange is that if I put some chinese characters directly in the JSP, > > those > > > characters are displayed properly, but those from the property files are > > > disrupted. > > > > > > Anybody can help? > > > > > > -----Original Message----- > > > From: wojtek [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, January 23, 2002 1:01 AM > > > To: Struts Users Mailing List > > > Subject: CHARACTER ENCODING ! > > > > > > > > > Hi, > > > > > > I am using struts form some form validation (obvious isn't it?) and I > came > > > across the following error: > > > > > > > > > National Polish characters returned from the forms are badly encoded ! > > > > > > I am using struts on win2k, jdk 1.3, the jsp page charset is set to > > > ISO-8859-2 > > > > > > Can anyone help ? > > > > > > regards > > > > > > Wojtek > > > > > > > > > > > > > > > -- > > > Myslisz o otworzeniu wlasnego sklepu internetowego? > > > A moze o wynajeciu stoiska w wirtualnym pasazu? > > > W Centrum e-biznesu mozesz miec jedno i drugie. Juz od 290 zl za rok. > > > Wybierz: e-witryne lub e-sklep. http://handel.getin.pl/ > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > -- > > > Myslisz o otworzeniu wlasnego sklepu internetowego? > > > A moze o wynajeciu stoiska w wirtualnym pasazu? > > > W Centrum e-biznesu mozesz miec jedno i drugie. Juz od 290 zl za rok. > > > Wybierz: e-witryne lub e-sklep. http://handel.getin.pl/ > > > > > > > > > -- > > Meczy Cie poszukiwanie korzystnej oferty? > > Jesli TAK - podaj nam czego potrzebujesz i wybierz najlepsza propozycje > > Wyszukiwanie i zbieranie ofert zostaw nam. > > Bezplatne Oferty Kupna w Centrum e-biznesu http://ofertykupna.getin.pl > > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > -- > > Serwis Aukcji Biznesowych: http://www.aukcje.getin.pl > > Maszyny i urzadzenia przemyslowe, budowlane i biurowe > > Wyprzedaze nadwyzek produkcyjnych i koncowek asortymentu > > Koszt otwarcia aukcji oraz udzial w biuletynie teraz tylko 50 PLN! > > > > > > > -- > Uwaga: Oferta dla firm! > Biznesowe konto pocztowe bez doklejek i przesylek reklamowych > Rejestracja wlasnego adresu internetowego (domeny) i 100 MB pojemnosci > Koszt uslugi to tylko 100 PLN/rok Szczegoly http://www.konto.getin.pl > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>