Index: modules/textile/textilephp/Textile.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/textile/textilephp/Textile.php,v
retrieving revision 1.3
diff -u -r1.3 Textile.php
--- modules/textile/textilephp/Textile.php	23 Sep 2004 15:50:57 -0000	1.3
+++ modules/textile/textilephp/Textile.php	6 Feb 2005 23:16:00 -0000
@@ -186,8 +186,8 @@
   function Textile($options = array()) {
     $this->options = $options;
     $this->options['filters'] = ($this->options['filters'] ? $this->options['filters'] : array());
-    $this->options['charset'] = ($this->options['charset'] ? $this->options['charset'] : 'iso-8859-1');
-    $this->options['char_encoding'] = ($this->options['char_encoding'] ? $this->options['char_encoding'] : 1);
+    $this->options['charset'] = ($this->options['charset'] ? $this->options['charset'] : 'utf-8'); // (Changed from 'iso-8859-1'); )
+    $this->options['char_encoding'] = ($this->options['char_encoding'] ? $this->options['char_encoding'] : 0); // (Changed from 1); )
     $this->options['do_quotes'] = ($this->options['do_quotes'] ? $this->options['do_quotes'] : 1);
     $this->options['trim_spaces'] = ($this->options['trim_spaces'] ? $this->options['trim_spaces'] : 0);
     $this->options['smarty_mode'] = ($this->options['smarty_mode'] ? $this->options['smarty_mode'] : 1);
@@ -288,7 +288,7 @@
    * @public
    */
   function head_offset($head_offset = NULL) {
-    if ($head_offset != NULL) {
+    if ($head_offset !== NULL) { // Changed from != to !==
       $this->options['head_offset'] = $head_offset;
     }
     return ($this->options['head_offset'] ? $this->options['head_offset'] : 0);
@@ -476,7 +476,7 @@
    * @public
    */
   function trim_spaces($trim_spaces = NULL) {
-    if ($trim_spaces != NULL) {
+    if ($trim_spaces !== NULL) { // Changed from != to !==
       $this->options['trim_spaces'] = $trim_spaces;
     }
     return $this->options['trim_spaces'];
@@ -516,7 +516,7 @@
    * @public
    */
   function preserve_spaces($preserve_spaces = NULL) {
-    if ($preserve_spaces != NULL) {
+    if ($preserve_spaces !== NULL) { // Changed from != to !==
       $this->options['preserve_spaces'] = $preserve_spaces;
     }
     return $this->options['preserve_spaces'];
@@ -556,7 +556,7 @@
    * @public
    */
   function char_encoding($char_encoding = NULL) {
-    if ($char_encoding != NULL) {
+    if ($char_encoding !== NULL) { // Changed from != to !==
       $this->options['char_encoding'] = $char_encoding;
     }
     return $this->options['char_encoding'];
@@ -575,7 +575,7 @@
    * @public
    */
   function handle_quotes($do_quotes = NULL) {
-    if ($do_quotes != NULL) {
+    if ($do_quotes !== NULL) { // Changed from != to !==
       $this->options['do_quotes'] = $do_quotes;
     }
     return $this->options['do_quotes'];
