diff --git a/commons/pom.xml b/commons/pom.xml index 844f3e42..07610083 100644 --- a/commons/pom.xml +++ b/commons/pom.xml @@ -1,6 +1,6 @@ - + org.archive heritrix @@ -327,5 +327,8 @@ - + + + UTF-8 + diff --git a/commons/src/test/java/org/archive/net/UURIFactoryTest.java b/commons/src/test/java/org/archive/net/UURIFactoryTest.java index a83b0821..9fe3b55f 100644 --- a/commons/src/test/java/org/archive/net/UURIFactoryTest.java +++ b/commons/src/test/java/org/archive/net/UURIFactoryTest.java @@ -905,6 +905,11 @@ public class UURIFactoryTest extends TestCase { String puny2 = "http://www.xn--plse-gra.dk/"; assertEquals("encoding of " + idn2, puny2, UURIFactory .getInstance(idn2).toString()); + // http://例子.測試 + String idn3 = "http://\u4F8B\u5B50.\u6E2C\u8A66"; + String puny3 = "http://xn--fsqu00a.xn--g6w251d/"; + assertEquals("encoding of " + idn3, puny3, UURIFactory + .getInstance(idn3).toString()); } public void testNewLineInURL() throws URIException { diff --git a/dist/pom.xml b/dist/pom.xml index e97204aa..ec958e9b 100644 --- a/dist/pom.xml +++ b/dist/pom.xml @@ -133,5 +133,8 @@ - - + + + UTF-8 + + diff --git a/engine/pom.xml b/engine/pom.xml index 043d6623..398685fe 100644 --- a/engine/pom.xml +++ b/engine/pom.xml @@ -146,5 +146,8 @@ - + + + UTF-8 + diff --git a/modules/pom.xml b/modules/pom.xml index 2fa0ee44..879f9a80 100644 --- a/modules/pom.xml +++ b/modules/pom.xml @@ -79,5 +79,8 @@ be used in applications other than Heritrix, however. - + + + UTF-8 + diff --git a/pom.xml b/pom.xml index 319dcfd7..e8b5f8d4 100644 --- a/pom.xml +++ b/pom.xml @@ -363,5 +363,7 @@ Heritrix is the Internet Archive's open-source, extensible, web-scale, - + + UTF-8 +