here the map...

        public static String stripMSWordUglyChars(String s) {
                try {
                        s = s.replaceAll("\u2018", "'");
                        s = s.replaceAll("\u2019", "'");
        
                        s = s.replaceAll("\u201C", "\"");
                        s = s.replaceAll("\u201D", "\"");
                        
                        s = s.replaceAll("\u2014", "-");
                } catch (Exception e) {
                        // TODO: handle exception
                }
                return s;
        }

Amed

On 30/dic/2009, at 21.10, Amedeo Mantica wrote:

> Hello,
> 
> I remember that there is a class that strips those orrible Microsoft Word bad 
> characters ( some dashes and quotes )
> 
> I don't recall if this is a Wonder class or not
> 
> Do you know ?
> 
> Regards
> Amedeo _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/amedeomailing%40insigno.it
> 
> This email sent to [email protected]
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to