Back to project page sms-backup-plus.
The source code is released under:
Apache License
If you think the Android project sms-backup-plus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.zegoggles.smssync.utils; //w w w . jav a 2s . com import org.apache.james.mime4j.codec.EncoderUtil; public final class Sanitizer { public static String sanitize(String s) { return s != null ? s.replaceAll("\\p{Cntrl}", "") : null; } public static String encodeLocal(String s) { return (s != null ? EncoderUtil.encodeAddressLocalPart(sanitize(s)) : null); } }