});
- final Pattern frSkipSections = Pattern.compile(".*(Traductions|[Aa]nagrammes).*");
+ final Pattern frSkipSections = Pattern.compile(".*([Tt]raductions|[Aa]nagrammes).*");
isoToLangConfig.put("FR", new LangConfig() {
@Override
public boolean skipSection(String headingText) {
final String webUrl = String.format(webUrlTemplate, title);
// URI.create can raise an exception e.g. if webUrl contains %, just ignore those cases.
try {
- callback.builder.append(String.format("<p> <a href=\"%s\">%s</a>", URI.create(webUrl).toString(), escapeHtmlLiteral(webUrl)));
+ callback.builder.append(String.format("<p> <a href=\"%s\">%s</a>", URI.create(webUrl).toASCIIString(), escapeHtmlLiteral(webUrl)));
} catch (Exception e)
{}
}