maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r712146 - /maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkTestDocument.java
Date Fri, 07 Nov 2008 15:01:59 GMT
Author: vsiveton
Date: Fri Nov  7 07:01:52 2008
New Revision: 712146

URL: http://svn.apache.org/viewvc?rev=712146&view=rev
Log:
o be sure that UTF-8 will be used

Modified:
    maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkTestDocument.java

Modified: maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkTestDocument.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkTestDocument.java?rev=712146&r1=712145&r2=712146&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkTestDocument.java
(original)
+++ maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/SinkTestDocument.java
Fri Nov  7 07:01:52 2008
@@ -19,6 +19,7 @@
  * under the License.
  */
 
+import java.io.UnsupportedEncodingException;
 
 /**
  * Static methods to generate standard Doxia sink events.
@@ -595,7 +596,15 @@
         sink.paragraph_();
 
         sink.paragraph();
-        String copyright = String.valueOf( '\u00a9' );
+        String copyright;
+        try
+        {
+            copyright = new String( String.valueOf( '\u00a9' ).getBytes(), "UTF-8" );
+        }
+        catch ( UnsupportedEncodingException e )
+        {
+            copyright = "";
+        }
         sink.text( "Copyright symbol: " + copyright + ", "
             + copyright + ", " + copyright + "." );
         sink.paragraph_();



Mime
View raw message