fork(1) download
  1. class Example
  2. {
  3. public static void main (String[] args) throws java.lang.Exception
  4. {
  5. String str = "S 33° 52' 4''";
  6. System.out.println("Before: " + str);
  7. str = str.replace("Â", "");
  8. System.out.println("After: " + str + " (using literal character)");
  9.  
  10. str = "S 33° 52' 4''";
  11. System.out.println("Before: " + str);
  12. str = str.replace("\u00C2", "");
  13. System.out.println("After: " + str + " (using Unicode escape)");
  14. }
  15. }
Success #stdin #stdout 0.04s 2184192KB
stdin
Standard input is empty
stdout
Before: S 33° 52' 4''
After:  S 33° 52' 4'' (using literal character)
Before: S 33° 52' 4''
After:  S 33° 52' 4'' (using Unicode escape)