* better ascii-fy quotes

This commit is contained in:
Reinhard Pointner 2015-12-05 10:01:34 +00:00
parent d4c2d77479
commit 7e2a43efd5
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ public class ExpressionFormatMethods {
}
public static String ascii(String self, String fallback) {
return Transliterator.getInstance("Any-Latin;Latin-ASCII;[:Diacritic:]remove").transform(self).replaceAll("[^\\p{ASCII}]+", fallback).trim();
return Transliterator.getInstance("Any-Latin;Latin-ASCII;[:Diacritic:]remove").transform(asciiQuotes(self)).replaceAll("[^\\p{ASCII}]+", fallback).trim();
}
public static String asciiQuotes(String self) {