DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-02 22:02 ---
Created an attachment (id=13628)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=13628&action=view)
JSP page to demonstrate the bug


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #13628|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2004-12-02 23:18 ---
Created an attachment (id=13632)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=13632&action=view)
Attachment fixed - JSP pave that demonstrates the bug


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|normal  |major




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2004-12-03 14:00 ---
have just tested your attachment in 5.5.4 (having installed the Windows 2000 
Hebrew language pack) and this works perfectly well. Will send an attachment of 
my JSP. 

However, was not able to test your bean. So I created a String variable and 
used <%= s %> and this works, disproving your theory that <%= causes the 
problem.

I suspect however you are encoding/loading values in your bean is causing the 
issue. Is this from a database by any chance?

Tested and confirmed that changing contentType directive between windows-1252 
and windows-1255 scrambles and then fixes respectively.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-03 14:01 ---
Created an attachment (id=13638)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=13638&action=view)
this code works and shows <%= is not causing an encoding issue


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-03 14:46 ---
> However, was not able to test your bean. So I created a String variable and 
> used <%= s %> and this works, disproving your theory that <%= causes the 
> problem.

If you use a String that is defined WITHIN the JSP page itself, than you are
using what I called "static" text - a text that is encoded as part of the JSP
page itself. If this is what you did, than you are not testing the problem I
described, because ALL hebrew text withing the JSP page is encoded
and displayed correctly anyway.

The problem is with strings that are not static == not part of the compiled
JSP page, but (rather) imported from a calling servlet.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-03 14:50 ---
ok how are you populating your bean's values?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-03 14:56 ---
(In reply to comment #6)
> ok how are you populating your bean's values?

Not a bean.
A servlet that received a HTTP get/post request, does some work, than
takes a text stored in MySQL database and passes it to the JSP page. For
the example file I uploaded before:

   News news = createNewsObjectWithStringTakenFromDatabaseWithSelectSQLCall ();
   request.setAttribute ("news", news);
   RequestDispatcher dispatcher = ctx.getNamedDispatcher ("JSPBugPage");
   dispatcher.forward (request, response);



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-03 15:50 ---
I think it is more like this ..

News news = 
createNewsObjectWithStringTakenFromDatabaseWithSelectSQLCallAndBadDatabaseEncodi
ng ();
request.setAttribute ("news", news);
RequestDispatcher dispatcher = ctx.getNamedDispatcher ("JSPPageWithNoBug");
dispatcher.forward (request, response);

This is a common mistake. You need to check your database connectivity and the 
charset used to communicate with your database (and also the database encoding).


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||INVALID




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |




--- Additional Comments From [EMAIL PROTECTED]  2004-12-03 22:50 ---
(In reply to comment #8)

Well, I had to install and configure a new version of the database to check
the bad-database-encoding-theory (it did not resolve anything, of course).

Ignore the database: same problem persists even in a code that does not
involve database operation:

   News news = new News ();
   news.setContent ("è÷ñè áòáøéú"); // some hebrew text string
   request.setAttribute ("news", news);
   RequestDispatcher dispatcher = ctx.getNamedDispatcher ("JSPBugPage");
   dispatcher.forward (request, response);

The issue is that I according to what you're saying, I must use:

   news.setContent (new String (new String ("è÷ñè áòáøéú")).getBytes 
(), "windows-1255"); // some hebrew text string there between the double-quotes

Or in other words - do the conversion manually for each and every string
variable I need to pass to the JSP page, instead of having the JSP page
convert them automatically.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-03 23:39 ---
i will try this again tomorrow with your suggestion. i am certain that the 
problem is not tomcat as i have battled with similar issues myself and 
realised it was my mistake. there is no "of course" about the fact your 
database is not the problem. the fact remains many people mis-configure their 
database character set.

i will be back with more tomorrow.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-04 21:40 ---
Thanks.

Notice that for JSP pages we can state explicitly what encoding should be used
for character strings they contain (by setting the appropriate value in
<%@ page contentType =...>

However, we cannot assign such encoding to servlet code (although if it is
typed-in in the same environment and same text-editor as its associated JSP
pages). So characters strings that originate in servlet code and transferred
to a JSP page will not be encoded correctly, unless the servlet explicitly
does the conversion. The risk is that instead of focusing on servlet logic,
servlet code will be cluttered with encoding conversions over and over again.

In my opinion this is an anomally (I do not think that the spec relate to this).
Thanks a lot.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #13638|text/html   |text/plain
  mime type||




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2004-12-04 22:05 ---
The report is invalid. Please do not reopen it.
If you have funky encoding in your source, you will need to configure the
compiler you're using (which is set to UTF-8 by default).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-04 22:22 ---
Forget it, the encoding of the compiler is not the problem here (I tried the
example, which works fine). Sorry for the trouble.

IMO the problem is that your String in your news object is retrieved from bytes
(on your db), but is created with the wrong encoding. Anyway, please don't
reopen the report, as there's no Tomcat issue to fix here.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-04 22:35 ---
And if there is no DB involved?
Instead of writing
  s = new String ("è÷ñè");
It would be written from now on:
  s = new String (new String ("è÷ñè").getBytes (), "windows-1255");

I'm Sorry to hear about your conclusion. IMO it passes the work to the code 
which becomes much more cluttered now...


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-04 22:54 ---
ok, i have tested this fully now. the reason your app is not working from the 
servlet side, regardless of database or no database, is because you O/S's 
locale/regional settings will be set such that the JVM Tomcat is using is 
defaulting character encoding for String creation (and other java.lang/java.io 
objects) to non-Hebrew support. Therefore you must either change your O/S 
locale so that the JVM defaults to Hebrew, OR you must convert your strings in 
the way you already found works, i.e new String("hebrew", "windows-1255");

Here is the reference:

"Every instance of the Java virtual machine has a default charset, which may 
or may not be one of the standard charsets. The default charset is determined 
during virtual-machine startup and typically depends upon the locale and 
charset being used by the underlying operating system."

http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html

This is not an anomaly of Tomcat nor the Java language.

Cheers, hope this helps. Allistair.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-04 22:58 ---
Created an attachment (id=13648)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=13648&action=view)
fyi: web app that demonstrates this report both for jsp and servlet,

this is a web app that demonstrates this issue. it is provided for completeness
for others reading this or experiencing the same issue without understanding
why.

note that this is not a tomcat or java bug, read why in the previous post.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-04 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-04 23:10 ---
also, read up on locales here :

http://www.joconner.com/javai18n/articles/Locale.html



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-06 20:04 ---
OK, comprehensive reply :-)
Now it all makes sense together.
Thanks a lot.

Can I upload here (when I finish my work) short guidelines for how to put things
to work together (MySQL, tomcat, java I18N) as help for other people?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-07 09:56 ---
Hi

Sure you can, i was planning on having an i18n section on some new tomcat 
documentation that i have been writing, so if you don't mind, I can use it on 
that page too.

send it when you've figured it out :)

Allistair.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-07 19:17 ---
Hi,
   I may have the similar problem as discussed here.  I need to use jsp to 
display some data in Japanese character from MS 
SQL server database.  I have already set the encoding in jsp to be:
 
<%@ page language="java" contentType="text/html; charset=UTF-8" %> 
 
If I use tomcat version 5.0.18, then the japanese character is 
displayed correctly.  However, if I use 5.0.28 or 5.5.4, the characters are 
something like "???".  If I right click the html page generated from jsp 
on the above versions, I can see the encoding to be Western instead of 
"UTF-8" like what happened with 5.0.18.  Does anyone know what cause 
this problem and if any configuration of Tomcat needs to be made.  Thank 
you very much for your help.
   Someone here that could not get the correct character set may want to test 
tomcat version 5.0.18.

(In reply to comment #0)
> After setting contentType to hebrew encoding in a JSP page, static text in the
> page is correctly displayed according to the specified encoding, but
> dynamically-generated text (<%= %> expression) does NOT get encoded to hebrew
> and it appears as a sequence of question marks on the browser.
> JSP is dispatched from a servlet that handles the request prior to generating
> the response to the client.
> Reproduced on both with IE-6 SP-1 and Firefox 1.0.
> I attached is a JSP page to reproduce the problem (but it requires that a
> database with hebrew content will be on the other hand, and that a servlet 
will
> assign a value to the variable before dispatching the call to the attached 
JSP).



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 32500] - specific text-encoding ignored for dynamically generated text

2004-12-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32500





--- Additional Comments From [EMAIL PROTECTED]  2004-12-07 19:43 ---
have you checked that your database driver URL has the correct charset? is 
your database encoding correct? which driver are you using?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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