You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Ralph Scheuer <ra...@gmx.net> on 2004/08/02 15:00:42 UTC

[Solved]: MSPowerPointExtractor problem

Hi everybody,

just a quick note for everybody:

Meanwhile, I managed to solve the problem. Ryan's and Sudhakar's 
sources work flawlessly (at least with German special characters) after 
adding one additional method to the source (see below).

The extracted String needs to be interpreted with "Cp1252" encoding.

It may well be that this is a Mac-specific encoding problem - I cannot 
verify the Windows or Linux behavior here.

Anyway, the following code solved the problem for me.

Again, thanks for all the great work you have done.

Ralph Scheuer

     private static String convertEncoding(String incoming){
         String outgoing = null;
         try {
	    outgoing = new String(incoming.getBytes(), "Cp1252");
	
         } catch (Exception e) {
             SDLogger.catchException(e);
         }
         return outgoing;
     }

PS: If there are no objections, I would like to contact the POI 
developer team and file a bug in bugzilla as I have the feeling that 
the code both of you have provided would be ideally suited for 
integrating some variant of it into the POI framework.

Kind regards.

Ralph

Am 02.08.2004 um 13:13 schrieb Koundinya ((Sudhakar Chavali)):

> Hmmmmm,
>
> Basically we have concentrated on English language. So we never faced 
> any problems. It become a
> new task for our team now :-)
>
> Thanks to Ralph in pointing that problem.
>
> We Will work on related and let the Jakarta team knows :-)
>
> Regards
> Sudhakar
>


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org