X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Fcom%2Fhughes%2Fandroid%2Fdictionary%2Fparser%2Fwiktionary%2FWholeSectionToHtmlParser.java;h=502e92a9b542558b8dc653f57a026071eb2e9bc4;hb=67991ce724e193b193f1c1d35e013b1c817f0aab;hp=e8a7e9b0a53528ea849bf45634313733e718ab9d;hpb=8b88cd6646f8abeed149db17958c3a1fc30eec99;p=DictionaryPC.git diff --git a/src/com/hughes/android/dictionary/parser/wiktionary/WholeSectionToHtmlParser.java b/src/com/hughes/android/dictionary/parser/wiktionary/WholeSectionToHtmlParser.java index e8a7e9b..502e92a 100644 --- a/src/com/hughes/android/dictionary/parser/wiktionary/WholeSectionToHtmlParser.java +++ b/src/com/hughes/android/dictionary/parser/wiktionary/WholeSectionToHtmlParser.java @@ -318,7 +318,7 @@ public class WholeSectionToHtmlParser extends AbstractWiktionaryParser { 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("

%s", URI.create(webUrl).toString(), escapeHtmlLiteral(webUrl))); + callback.builder.append(String.format("

%s", URI.create(webUrl).toASCIIString(), escapeHtmlLiteral(webUrl))); } catch (Exception e) {} }