RE: question marks appearing after deploy to production server

2003-08-14 Thread Hans Wichman
Hi,
on my lokal pc it's winxp, on the production server it is freebsd 4.8.
Greetz
Hans
At 09:31 AM 8/13/2003 +0100, [EMAIL PROTECTED] wrote:
What is the server platform ?

 Does anybody have a clue how this may happen?

But anyway this is most likely a character set problem, where
you are using a character set that does not contain the character
you want.
This has some good info about character sets:

http://czyborra.com/charsets/iso8859.html

-
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: question marks appearing after deploy to production server

2003-08-14 Thread Tom Lyle
This could be to do with the character encoding setting in your jdbc driver.
Are you connecting to the same database on your testserver as on your
localmachine? Are you obtaining a Connection object in a different way?

 -Original Message-
 From: Mark Schmeets [mailto:[EMAIL PROTECTED]
 Sent: 13 August 2003 14:40
 To: Tomcat Users List
 Subject: Re: question marks appearing after deploy to production server


 Hans Wichman wrote:

  Hi,
  I have a strange problem, I wrote a servlet that retrieves some data
  from a database, which may contains characters such as ë.
 
  On my local tomcat 4.1.24 testserver the output shows correctly as in
  'aërobe'.
  However if I deploy the application to one of our testservers, the
  result is 'a?robe'.
 
  Does anybody have a clue how this may happen?
 
  regards,
  Hans
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 It is almost certainly a characterset problem. You can specify the
 characterset when you set the content type, and Tomcat will create an
 OutputStreamWriter ( to create the PrintWriter ) with that characterset.
 Or if you are creating the PrintWriter yourself, specify the correct
 encoding.
 Another thing to check is the characterset in your database. You want to
 make sure this matches.

 Hope this helps.
 Mark


 -
 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: question marks appearing after deploy to production server

2003-08-14 Thread Mark Schmeets
Hans Wichman wrote:

Hi,
I have a strange problem, I wrote a servlet that retrieves some data 
from a database, which may contains characters such as ë.

On my local tomcat 4.1.24 testserver the output shows correctly as in 
'aërobe'.
However if I deploy the application to one of our testservers, the 
result is 'a?robe'.

Does anybody have a clue how this may happen?

regards,
Hans
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
It is almost certainly a characterset problem. You can specify the 
characterset when you set the content type, and Tomcat will create an 
OutputStreamWriter ( to create the PrintWriter ) with that characterset. 
Or if you are creating the PrintWriter yourself, specify the correct 
encoding.
Another thing to check is the characterset in your database. You want to 
make sure this matches.

Hope this helps.
Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: question marks appearing after deploy to production server

2003-08-14 Thread Bodycombe, Andrew
Try setting CATALINA_OPTS=-Dfile.encoding=iso-8859-1

I think Sun changed the default character set in JDK1.4 - It is now ASCII

HTH
Andy

-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED] 
Sent: 13 August 2003 09:24
To: [EMAIL PROTECTED]
Subject: question marks appearing after deploy to production server


Hi,
I have a strange problem, I wrote a servlet that retrieves some data from a 
database, which may contains characters such as ë.

On my local tomcat 4.1.24 testserver the output shows correctly as in
'aërobe'.
However if I deploy the application to one of our testservers, the result 
is 'a?robe'.

Does anybody have a clue how this may happen?

regards,
Hans


-
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: question marks appearing after deploy to production server

2003-08-14 Thread Hans Wichman
It worked ! great, thanks !

At 09:50 AM 8/13/2003 +0100, Bodycombe, Andrew wrote:
Try setting CATALINA_OPTS=-Dfile.encoding=iso-8859-1

I think Sun changed the default character set in JDK1.4 - It is now ASCII

HTH
Andy
-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED]
Sent: 13 August 2003 09:24
To: [EMAIL PROTECTED]
Subject: question marks appearing after deploy to production server
Hi,
I have a strange problem, I wrote a servlet that retrieves some data from a
database, which may contains characters such as ë.
On my local tomcat 4.1.24 testserver the output shows correctly as in
'aërobe'.
However if I deploy the application to one of our testservers, the result
is 'a?robe'.
Does anybody have a clue how this may happen?

regards,
Hans
-
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]


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


RE: question marks appearing after deploy to production server

2003-08-14 Thread robert.tomlin
What is the server platform ?

 Does anybody have a clue how this may happen?

But anyway this is most likely a character set problem, where
you are using a character set that does not contain the character
you want.

This has some good info about character sets:

http://czyborra.com/charsets/iso8859.html

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