http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2291

*** shadow/2291 Fri Jun 22 17:21:33 2001
--- shadow/2291.tmp.7451        Sun Jun 24 01:02:08 2001
***************
*** 60,62 ****
--- 60,90 ----
  Oh, wait, no: this doesn't work if someone's re-jarred their own file on 
  another system.   Aw, heck - if they recompile our stuff it's their own fault. 
  (just kidding 8-))
+ 
+ ------- Additional Comments From [EMAIL PROTECTED]  2001-06-24 01:02 -------
+ I'm new at Java, so perhaps this is a silly suggestion... 
+ but, could you not put an exception handler in this code to 
+ try UTF-8 encoding when a classNotFound exception is thown
+ i.e.:
+ 
+ try
+ {
+   BufferedReader rd =new BufferedReader(new InputStreamReader(is));
+ }
+ catch (ClassNotFoundException e)
+ {
+   BufferedReader rd =new BufferedReader(new InputStreamReader(is,"UTF-8"));
+ }
+ finally
+ {}
+ 
+ That if it's native then you get the file and if it's in the jar
+ you get it out ok and if it's in neither the second exception gets
+ thrown up like the first one is now. 
+ 
+ Does that make any sense?
+ 
+ -Garth
+ [EMAIL PROTECTED]
+ ---======= Northern.CA
+ http://www.northern.ca
\ No newline at end of file

Reply via email to