Author: rdonkin
Date: Sat May 12 04:23:21 2007
New Revision: 537388

URL: http://svn.apache.org/viewvc?view=rev&rev=537388
Log:
Default to UTF-8 as per RFC.

Modified:
    james/jsieve/trunk/src/main/java/org/apache/jsieve/SieveFactory.java
    james/jsieve/trunk/src/site/xdoc/index.xml

Modified: james/jsieve/trunk/src/main/java/org/apache/jsieve/SieveFactory.java
URL: 
http://svn.apache.org/viewvc/james/jsieve/trunk/src/main/java/org/apache/jsieve/SieveFactory.java?view=diff&rev=537388&r1=537387&r2=537388
==============================================================================
--- james/jsieve/trunk/src/main/java/org/apache/jsieve/SieveFactory.java 
(original)
+++ james/jsieve/trunk/src/main/java/org/apache/jsieve/SieveFactory.java Sat 
May 12 04:23:21 2007
@@ -89,7 +89,7 @@
     {
         try
         {
-            return new SieveParser(inputStream).start();
+            return new SieveParser(inputStream, "UTF-8").start();
         }
         catch (ParseException ex)
         {

Modified: james/jsieve/trunk/src/site/xdoc/index.xml
URL: 
http://svn.apache.org/viewvc/james/jsieve/trunk/src/site/xdoc/index.xml?view=diff&rev=537388&r1=537387&r2=537388
==============================================================================
--- james/jsieve/trunk/src/site/xdoc/index.xml (original)
+++ james/jsieve/trunk/src/site/xdoc/index.xml Sat May 12 04:23:21 2007
@@ -198,6 +198,20 @@
 As jSieve comes with a fairly extensive suite of jUnit Tests, it would be most 
 helpful for bug reports to be accompanied by an illustrative jUnit test case.
 </p>
+<section name='Frequently Asked Question'>
+    <section name='Why Do Tests Using Non-ASCII Characters Fail?'>
+        <p>
+SIEVE specifies that <a href='http://ietf.org/rfc/rfc2278.txt'>UTF-8</a> 
encoding is used for scripts.
+This format is an international standard and has wide support but not
+all platforms use this encoding by default. 
+        </p>
+        <p>
+By default, JSieve expects that scripts are encoding using <code>UTF-8</code>.
+Either set the encoding programmatically or ensure that the script is encoded 
using
+<code>UTF-8</code>.
+        </p>
+    </section>
+</section>
 </section>
 </body>
 </document>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to