RE: Character encoding issue

2003-12-17 Thread Seyed Razavi
Well to answer my own question: The source of the problem was found.  A
compression filter (gzipping the response) seems to have been the
culprit. 

 -Original Message-
 From: Seyed Razavi [mailto:[EMAIL PROTECTED] 
 Sent: 17 December 2003 17:37
 To: [EMAIL PROTECTED]
 Subject: Character encoding issue
 
 
 Howdy,
 
 I've got a strange problem with character encoding German 
 characters. I'm using iso-8859-1.  The app is running on JDK 
 1.4.2, Jboss 3.2 w/ Tomcat and using Struts 1.1.
 
 The application works fine on local Windows machine and on a 
 Red Hat system.
 
 However, when moved to a Debian system it behaves strangely 
 ONLY when accessing Action mappings NOT when accessing JSPs directly.
 
 Accessing a JSP directly shows all messages properly 
 displayed but accessing it via an Action class (through an 
 ActionForward) shows all German characters as ?.
 
 The HTML encoding is properly set and all JSP include:
 
 %@ page contentType=text/html; charset=iso-8859-1%
 %@ page pageEncoding=iso-8859-1%
 
 I've set the following in the run.sh for Jboss in case it's a system
 issue:
 
 export LANG=german
 export LC_ALL=de_DE
 
 I don't think it is a system issue because as I said, all JSP 
 when accessed directly respond properly.  The resource bundle 
 is also iso-8859-1 encoded.
 
 I'm also setting the Locale on each request to de (using 
 the Action class setLocale method) just in case.  The output 
 from the action servlet seem to have the correct content-type 
 according to Netscape.
 
 Anybody help?
 
 Cheers,
 
 Seyed
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Character Encoding

2003-10-01 Thread Remke Rutgers
Hi Stephan, 

The instruction you use to force UTF-8 looks fine to me, so I don't know why
it does not work. This is the way we do it in several web applications too.
They are non-public sites, so I am sorry I can not simply let you try them
out.
Manual transformation should not be necessary.
First of all can you make sure that the contenttype header is really sent to
the browser?
A simple utility that shows you all HTTP requests and response headers
(plugin for IE) can be found at:
http://www.blunck.info/ieHTTPHeaders.html

Also (assuming you are using IE), right-click in your page, move to Encoding
and see what is selected there. It should be UTF-8.

If you come to the conclusion the response is indeed sent as UTF-8, but
still characters are not showing correctly, than I think something is wrong
with the source data.

Remke
 -Oorspronkelijk bericht-
 Van: Stephan Wiesner [mailto:[EMAIL PROTECTED]
 Verzonden: woensdag 1 oktober 2003 10:10
 Aan: Struts Users Mailing List
 Onderwerp: Character Encoding
 
 
 Hi,
 I have a web application that needs to support arabic, so I 
 use UTF8 for 
 encoding:
 %@ page language=java contentType=text/html; charset=UTF-8%
 
 This leads to some characters beeing displayed wrong (works fine with 
 Latin-1), like the German 'Ü'. However I can mix them if I write them 
 like '\u05E9' by hand.
 My text strings come from a database and from my ressource bundles. I 
 could use a Servlet filter to change the Strings before serving them, 
 just have no idea how to transform them?
 
 Stephan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Character Encoding

2003-10-01 Thread Stephan Wiesner
Hi Remke,
thanks for the link to the tool, quite useful. The header is correct in 
my case, though.

Here is a simple source example:
String original = new String(A'lü[\u05E9]);
String out1 = new String(original.getBytes(), UTF8);
out.println(Original:  + original + br /UTF-8: );
out.println(out1);
The result is seen in the attached screener.
I don't understand why the two outputs differ and would like the 'ü' to 
be printed as such. It is printed correctly coming from my ressource 
files, but not coming from the database. When I change to Latin-1 all 
works fine.

Stephan

Remke Rutgers wrote:

Hi Stephan, 

The instruction you use to force UTF-8 looks fine to me, so I don't know why
it does not work. This is the way we do it in several web applications too.
They are non-public sites, so I am sorry I can not simply let you try them
out.
Manual transformation should not be necessary.
First of all can you make sure that the contenttype header is really sent to
the browser?
A simple utility that shows you all HTTP requests and response headers
(plugin for IE) can be found at:
http://www.blunck.info/ieHTTPHeaders.html
Also (assuming you are using IE), right-click in your page, move to Encoding
and see what is selected there. It should be UTF-8.
If you come to the conclusion the response is indeed sent as UTF-8, but
still characters are not showing correctly, than I think something is wrong
with the source data.
Remke


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Character Encoding

2003-10-01 Thread Brian McSweeney
Sounds suspiciously like your database isn't configured for UTF-8

-Original Message-
From: Stephan Wiesner [mailto:[EMAIL PROTECTED] 
Sent: 01 October 2003 09:13
To: Struts Users Mailing List
Subject: Re: Character Encoding

Hi Remke,
thanks for the link to the tool, quite useful. The header is correct in 
my case, though.

Here is a simple source example:
String original = new String(A'lü[\u05E9]);
String out1 = new String(original.getBytes(), UTF8);

out.println(Original:  + original + br /UTF-8: );
out.println(out1);


The result is seen in the attached screener.
I don't understand why the two outputs differ and would like the 'ü' to 
be printed as such. It is printed correctly coming from my ressource 
files, but not coming from the database. When I change to Latin-1 all 
works fine.

Stephan

Remke Rutgers wrote:

 Hi Stephan, 
 
 The instruction you use to force UTF-8 looks fine to me, so I don't
know why
 it does not work. This is the way we do it in several web applications
too.
 They are non-public sites, so I am sorry I can not simply let you try
them
 out.
 Manual transformation should not be necessary.
 First of all can you make sure that the contenttype header is really
sent to
 the browser?
 A simple utility that shows you all HTTP requests and response headers
 (plugin for IE) can be found at:
 http://www.blunck.info/ieHTTPHeaders.html
 
 Also (assuming you are using IE), right-click in your page, move to
Encoding
 and see what is selected there. It should be UTF-8.
 
 If you come to the conclusion the response is indeed sent as UTF-8,
but
 still characters are not showing correctly, than I think something is
wrong
 with the source data.
 
 Remke
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Character Encoding

2003-10-01 Thread Adam Hardy
Hi Stephan,
I think the attachment got stripped off by the list server.
On 10/01/2003 11:12 AM Stephan Wiesner wrote:
Hi Remke,
thanks for the link to the tool, quite useful. The header is correct in 
my case, though.

Here is a simple source example:
String original = new String(A'lü[\u05E9]);
String out1 = new String(original.getBytes(), UTF8);
out.println(Original:  + original + br /UTF-8: );
out.println(out1);
The result is seen in the attached screener.
I don't understand why the two outputs differ and would like the 'ü' to 
be printed as such. It is printed correctly coming from my ressource 
files, but not coming from the database. When I change to Latin-1 all 
works fine.

Stephan

Remke Rutgers wrote:

Hi Stephan,
The instruction you use to force UTF-8 looks fine to me, so I don't 
know why
it does not work. This is the way we do it in several web applications 
too.
They are non-public sites, so I am sorry I can not simply let you try 
them
out.
Manual transformation should not be necessary.
First of all can you make sure that the contenttype header is really 
sent to
the browser?
A simple utility that shows you all HTTP requests and response headers
(plugin for IE) can be found at:
http://www.blunck.info/ieHTTPHeaders.html

Also (assuming you are using IE), right-click in your page, move to 
Encoding
and see what is selected there. It should be UTF-8.

If you come to the conclusion the response is indeed sent as UTF-8, but
still characters are not showing correctly, than I think something is 
wrong
with the source data.

Remke





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Character Encoding

2003-10-01 Thread Stephan Wiesner
Hmh, so it seems. Can't present the result in plain text, but the 
results are wrong and the usage of new String(original.getBytes(), 
UTF8); leads to a different result.



Adam Hardy wrote:

Hi Stephan,
I think the attachment got stripped off by the list server.
On 10/01/2003 11:12 AM Stephan Wiesner wrote:

Hi Remke,
thanks for the link to the tool, quite useful. The header is correct 
in my case, though.

Here is a simple source example:
String original = new String(A'lü[\u05E9]);
String out1 = new String(original.getBytes(), UTF8);
out.println(Original:  + original + br /UTF-8: );
out.println(out1);
The result is seen in the attached screener.
I don't understand why the two outputs differ and would like the 'ü' 
to be printed as such. It is printed correctly coming from my 
ressource files, but not coming from the database. When I change to 
Latin-1 all works fine.

Stephan

Remke Rutgers wrote:

Hi Stephan,
The instruction you use to force UTF-8 looks fine to me, so I don't 
know why
it does not work. This is the way we do it in several web 
applications too.
They are non-public sites, so I am sorry I can not simply let you try 
them
out.
Manual transformation should not be necessary.
First of all can you make sure that the contenttype header is really 
sent to
the browser?
A simple utility that shows you all HTTP requests and response headers
(plugin for IE) can be found at:
http://www.blunck.info/ieHTTPHeaders.html

Also (assuming you are using IE), right-click in your page, move to 
Encoding
and see what is selected there. It should be UTF-8.

If you come to the conclusion the response is indeed sent as UTF-8, but
still characters are not showing correctly, than I think something is 
wrong
with the source data.

Remke





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Character Encoding

2003-10-01 Thread Adam Hardy
On a page encoded with UTF-8, I am showing the proper ü and presumably 
the correct character after it on the 'original' line, but in the second 
line, I just get ? for both.

On 10/01/2003 01:22 PM Stephan Wiesner wrote:
Hmh, so it seems. Can't present the result in plain text, but the 
results are wrong and the usage of new String(original.getBytes(), 
UTF8); leads to a different result.



Adam Hardy wrote:

Hi Stephan,
I think the attachment got stripped off by the list server.
On 10/01/2003 11:12 AM Stephan Wiesner wrote:

Hi Remke,
thanks for the link to the tool, quite useful. The header is correct 
in my case, though.

Here is a simple source example:
String original = new String(A'lü[\u05E9]);
String out1 = new String(original.getBytes(), UTF8);
out.println(Original:  + original + br /UTF-8: );
out.println(out1);

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Character Encoding

2003-10-01 Thread Adam Hardy
PS The second character looks like a U, but the left hand upright is forked.

On 10/01/2003 01:22 PM Stephan Wiesner wrote:
Hmh, so it seems. Can't present the result in plain text, but the 
results are wrong and the usage of new String(original.getBytes(), 
UTF8); leads to a different result.



Adam Hardy wrote:

Hi Stephan,
I think the attachment got stripped off by the list server.
On 10/01/2003 11:12 AM Stephan Wiesner wrote:

Hi Remke,
thanks for the link to the tool, quite useful. The header is correct 
in my case, though.

Here is a simple source example:
String original = new String(A'lü[\u05E9]);
String out1 = new String(original.getBytes(), UTF8);
out.println(Original:  + original + br /UTF-8: );
out.println(out1);
--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Character encoding problem

2002-12-29 Thread Dan Tran
I have seen the i18N problems several time last few days.

Here is the link and hope it helps

http://www.anassina.com/struts/i18n/i18n.html


You may need to get another database that support
Unicode which MySQL is not.

-Dan

- Original Message -
From: struts struts [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, December 29, 2002 1:24 PM
Subject: Character encoding problem


 Hi.

 I use Greek messages on every JSP page. These messages are in a file
 application_el_GR.properties.
 I use a file tiles-defs.xml for all my pages which i
 use a Layout (for example classicLayout.jsp). In the  classicLayout.jsp i
 configure %@ page contentType=text/html; charset=iso-8859-7 % for
display
 Greek characters. Also i use the same configuration in every JSP page of
 tiles-defs.xml

 I 've connected on MySQL server where i use character-set=greek.

 The problem is that the data from database is displayed in greek character
set
 the messages are displayed like ??? ? ? ??

 When i remove the tag %@ page contentType=text/html; charset=iso-8859-7
%
 from every page then the messages are displayed in greek character set
 but the data from database where are greek characters are displayed as
??

 Is there a Struts configuration??

 Thanx



 Theodoridis Jim

 --
 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]




RE: Character Encoding wrong just for ApplicationResources!

2002-02-14 Thread Chris Birch

Hertzel,

The property files get loaded using ISO-8859-1 Encoding but they understand
unicode escapes.  Convert your file using the java tool (jdk/bin)
'native2ascii' and that should load the strings into the JVM correctly.

The only other possible problem occurs in some Containers (see Tagunov's doc
below for more detail) - The %@ page contentType=text/html; charset=UTF-8
% gets converted into a setContentType() call on the response object, this
has to occur before the output writer is retrieved from the pageContext,
otherwise the default character encoding is used.  Some (web logic 6 amongst
others) set the content type after the writer is called thus rendering the
@page contentType directive useless!

Anton Tagunov's document is excellent and very comprehensive.

Hope this helps,
Chris.


-Original Message-
From: Hertzel Karbasi - OPTinity eBusiness Solutions
[mailto:[EMAIL PROTECTED]]
Sent: 14 February 2002 08:40
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: Character Encoding wrong just for ApplicationResources!


Thanks for your response.
But I have already saved the ApplicationResource file in Unicode but the
same results!!
I have tried saving the file in UTF-8 too but again the same results.

Any suggestions?
Thanks
Hertzel
- Original Message -
From: Louis Leung [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 14, 2002 12:15 AM
Subject: Re: Character Encoding wrong just for ApplicationResources!


 or you can covert your properties file strings from native to unicode
using this
 method

 return new String(oldString.getBytes(), encoding);

 where encoding is the native encoding u used in your properties file

 more 'bout charset encoding/decoding on this page :

 http://tagunov.newmail.ru/i18n/i18n.html

 Hertzel Karbasi - OPTinity eBusiness Solutions wrote:

  Hello All
 
  I have added  the following to JSP files
  META http-equiv=Content-Type content=text/html, charset=UTF-8
  %@ page contentType=text/html; charset=UTF-8 %
  html:html locale=true
  Change the locale in an Action to iw_IL
 
  And get:
  Constant strings inserted in JSP in Hebrew are OK.
  Just the Strings (html:message coming from Applicationresource are
shown
  as ??
  I have checked the messages in debug and found out that they come as

  from the resource.
  The constant string inserted in the JSP in Hebrew just to check the
browser
  and they have been displayed right!
 
  Any assistance will be appreciated.
  Thanks
  Hertzel
 

  
  --
  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]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Character Encoding wrong just for ApplicationResources!

2002-02-13 Thread Louis Leung

your properties file have to be written in Unicode encoding, not the native
encoding, or else java will screw your characters up, since java can only deal
with unicode

Hertzel Karbasi - OPTinity eBusiness Solutions wrote:

 Hello All

 I have added  the following to JSP files
 META http-equiv=Content-Type content=text/html, charset=UTF-8
 %@ page contentType=text/html; charset=UTF-8 %
 html:html locale=true
 Change the locale in an Action to iw_IL

 And get:
 Constant strings inserted in JSP in Hebrew are OK.
 Just the Strings (html:message coming from Applicationresource are shown
 as ??
 I have checked the messages in debug and found out that they come as 
 from the resource.
 The constant string inserted in the JSP in Hebrew just to check the browser
 and they have been displayed right!

 Any assistance will be appreciated.
 Thanks
 Hertzel

   
 --
 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]




Re: Character Encoding wrong just for ApplicationResources!

2002-02-13 Thread Louis Leung

or you can covert your properties file strings from native to unicode using this
method

return new String(oldString.getBytes(), encoding);

where encoding is the native encoding u used in your properties file

more 'bout charset encoding/decoding on this page :

http://tagunov.newmail.ru/i18n/i18n.html

Hertzel Karbasi - OPTinity eBusiness Solutions wrote:

 Hello All

 I have added  the following to JSP files
 META http-equiv=Content-Type content=text/html, charset=UTF-8
 %@ page contentType=text/html; charset=UTF-8 %
 html:html locale=true
 Change the locale in an Action to iw_IL

 And get:
 Constant strings inserted in JSP in Hebrew are OK.
 Just the Strings (html:message coming from Applicationresource are shown
 as ??
 I have checked the messages in debug and found out that they come as 
 from the resource.
 The constant string inserted in the JSP in Hebrew just to check the browser
 and they have been displayed right!

 Any assistance will be appreciated.
 Thanks
 Hertzel

   
 --
 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]




RE: CHARACTER ENCODING !

2002-01-24 Thread Wasniewski Arkadiusz

Polish chars in index.jsp are in iso-8859-2 not UTF-8!

Arek

 -Original Message-
 From: wojtek [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 23, 2002 10:19 PM
 To: Struts Users Mailing List
 Subject: Re: CHARACTER ENCODING !
 
 
 Here it goes,
 
 thanks for help.
 
 Wojtek
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: CHARACTER ENCODING !

2002-01-24 Thread Martin Fekete

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

Re: CHARACTER ENCODING !

2002-01-24 Thread Martin Fekete

encoding of property files don't affect encoding of JSP files.

i write my .properties files in Cp1250. then i convert it using
native2ascii.
all my JSP are Cp1250 (contentType=text/html; charset=windows-1250) and
everything works fine.

problem in this case might be that your JSP is not saved in encoding you
want to display in.

and when you a submiting fields from form you must manually encode request
using request.setCharacterEncoding() but BEFORE reading any of request
parameters. workaround for this problem are fiters in new servlets spec.
Examples of filters are in tomcat 4.x. one of them is setCharacterEncoding
filter, which is what you need.

Feky

- Original Message -
From: timothy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 4:02 AM
Subject: Re: CHARACTER ENCODING !


 Hi Dennis Lee,

 after you use native2ascii.exe, the encoding become UTF8

 so %@ page contentType=text/html; charset=UTF8 % will work


 if you want to use big5   you need to convert it before (let say in the
 getXXX of javaBean  then it will work


 From Timothy
 Strategus Partners Ltd



 - Original Message -
 From: Lee, Dennis [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, January 24, 2002 10:48 AM
 Subject: RE: CHARACTER ENCODING !


  Hi,
 
  I have exactly the same problem.
  I try to convert the chinese in the properties file to unicode using
  native2ascii but it doesn't work.
  %@ page contentType=text/html; charset=big5 % + native2ascii  =
  ?, all chinese characters becomes '??'.
 
  Anybody can give some more help ?
 
  Best Regards,
  Dennis Lee
 
  -Original Message-
  From: Christopher Cheng [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 23, 2002 10:11 AM
  To: Struts Users Mailing List
  Cc: wojtek
  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]
 
 
  **
  This message and any files transmitted with it are confidential and
  may be privileged and/or subject to the provisions of privacy
legislation.
  They are intended solely for the use of the individual or entity to whom
 they
  are addressed. If the reader of this message is not the intended
 recipient,
  please notify the sender immediately and then delete this message.
  You are notified that reliance on, disclosure of, distribution or
copying
  of this message is prohibited.
 
  Bank of Bermuda
  **
 
 
  --
  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]




Re: CHARACTER ENCODING !

2002-01-23 Thread wojtek

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]




RE: CHARACTER ENCODING !

2002-01-23 Thread Peter . Zybrick

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]




Re: CHARACTER ENCODING !

2002-01-23 Thread wojtek

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

RE: CHARACTER ENCODING !

2002-01-23 Thread Peter . Zybrick

ouch... utf-8 works on WebLogic and WebSphere, i've got tomcat running at
home, let me try it tonight and see what i get.  please send me a sample of
your jsp - [EMAIL PROTECTED]

pete

-Original Message-
From: wojtek [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 4:06 PM
To: Struts Users Mailing List
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

Re: CHARACTER ENCODING !

2002-01-23 Thread wojtek

Here it goes,

thanks for help.

Wojtek



head.jsp
Description: Binary data


index.jsp
Description: Binary data

 
-- 
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]


RE: CHARACTER ENCODING !

2002-01-23 Thread Lee, Dennis

Hi,

I have exactly the same problem.  
I try to convert the chinese in the properties file to unicode using
native2ascii but it doesn't work.
%@ page contentType=text/html; charset=big5 % + native2ascii  =
?, all chinese characters becomes '??'.

Anybody can give some more help ?

Best Regards,
Dennis Lee

-Original Message-
From: Christopher Cheng [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 10:11 AM
To: Struts Users Mailing List
Cc: wojtek
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]


**
This message and any files transmitted with it are confidential and
may be privileged and/or subject to the provisions of privacy legislation.
They are intended solely for the use of the individual or entity to whom they
are addressed. If the reader of this message is not the intended recipient, 
please notify the sender immediately and then delete this message.
You are notified that reliance on, disclosure of, distribution or copying
of this message is prohibited.

Bank of Bermuda
**


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: CHARACTER ENCODING !

2002-01-23 Thread timothy

Hi Dennis Lee,

after you use native2ascii.exe, the encoding become UTF8

so %@ page contentType=text/html; charset=UTF8 % will work


if you want to use big5   you need to convert it before (let say in the
getXXX of javaBean  then it will work


From Timothy
Strategus Partners Ltd



- Original Message -
From: Lee, Dennis [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 24, 2002 10:48 AM
Subject: RE: CHARACTER ENCODING !


 Hi,

 I have exactly the same problem.
 I try to convert the chinese in the properties file to unicode using
 native2ascii but it doesn't work.
 %@ page contentType=text/html; charset=big5 % + native2ascii  =
 ?, all chinese characters becomes '??'.

 Anybody can give some more help ?

 Best Regards,
 Dennis Lee

 -Original Message-
 From: Christopher Cheng [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 23, 2002 10:11 AM
 To: Struts Users Mailing List
 Cc: wojtek
 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]


 **
 This message and any files transmitted with it are confidential and
 may be privileged and/or subject to the provisions of privacy legislation.
 They are intended solely for the use of the individual or entity to whom
they
 are addressed. If the reader of this message is not the intended
recipient,
 please notify the sender immediately and then delete this message.
 You are notified that reliance on, disclosure of, distribution or copying
 of this message is prohibited.

 Bank of Bermuda
 **


 --
 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]




Re: CHARACTER ENCODING !

2002-01-22 Thread Rob Breeds

Wojtek

Are you setting locale with:
html:html locale=true
?

Rob Breeds





   
 
wojtek   
 
wojtekbe@box4   To: Struts Users Mailing List 
[EMAIL PROTECTED]   
3.gnet.pl   cc:   
 
 Subject: CHARACTER ENCODING ! 
 
22/01/2002 
 
17:00  
 
Please respond 
 
to Struts 
 
Users Mailing  
 
List  
 
   
 
   
 




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]