<?xml version="1.0"?>
<?xml-stylesheet 
 href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/9452/bug">
    <title>PEAR Bug #9452</title>
    <link>http://pear.php.net/bugs/9452</link>
    <description>[Open] Table charset, collation, engine options</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bugs/9452"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/9452/2007-06-10+19%3A44%3A14#2007-06-10+19%3A44%3A14"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/9452/2007-06-10+19%3A31%3A11#2007-06-10+19%3A31%3A11"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/9452/2007-06-10+17%3A30%3A12#2007-06-10+17%3A30%3A12"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/9452/2006-12-15+10%3A28%3A26#2006-12-15+10%3A28%3A26"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/9452/2006-12-15+09%3A39%3A53#2006-12-15+09%3A39%3A53"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/9452/2006-11-25+07%3A21%3A09#2006-11-25+07%3A21%3A09"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/9452/2006-11-25+05%3A56%3A34#2006-11-25+05%3A56%3A34"/>
     </rdf:Seq>
    </items>
  </channel>
    <item rdf:about="http://pear.php.net/bugs/9452">
      <title>pearbugs2006@... [2006-11-25 02:47:48]</title>
      <link>http://pear.php.net/bugs/9452</link>
      <description><![CDATA[<pre>MDB2_Schema Feature/Change Request
Reported by pearbugs2006@...
2006-11-25T07:47:48-00:00
PHP: 5.1.2 OS: Ubuntu 6.0 Package Version: 0.7.0

Description:
------------
I'm using MDB2_Schema with MySQL but as I'm creating an internationalized app I need to make sure I've got utf8 tables.  Right now MDB2_Schema just uses the defaults.  I simply rewrote Schema.php to always set utf8 when it creates a table, but it seems like this is an important feature to add.  In my case I wouldn't need to set each table individually, I'm using the same settings through the entire database.</pre>]]></description>
      <content:encoded><![CDATA[<pre>MDB2_Schema Feature/Change Request
Reported by pearbugs2006@...
2006-11-25T07:47:48-00:00
PHP: 5.1.2 OS: Ubuntu 6.0 Package Version: 0.7.0

Description:
------------
I'm using MDB2_Schema with MySQL but as I'm creating an internationalized app I need to make sure I've got utf8 tables.  Right now MDB2_Schema just uses the defaults.  I simply rewrote Schema.php to always set utf8 when it creates a table, but it seems like this is an important feature to add.  In my case I wouldn't need to set each table individually, I'm using the same settings through the entire database.</pre>]]></content:encoded>
      <dc:date>2006-11-25T07:47:48-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/9452/2007-06-10+19%3A44%3A14#2007-06-10+19%3A44%3A14">
      <title>pearbugs2006@... [2007-06-10 23:44]</title>
      <link>http://pear.php.net/bugs/9452#1181519054</link>
      <description><![CDATA[<pre>Okay, I think I tracked down the code with one last try but add-patch.php in the bugs application here didn't like the name of the folder my file was in and wouldn't let me upload it... the change was in the function &quot;createTable&quot;, in this code block at line 657 in v 1.103 2006/10/21 15:00:24 :


        if ($create) {
		$opts =                           array(
                              'charset' =&gt; 'utf8',
                              'collate' =&gt; 'utf8_unicode_ci',
                              'type'    =&gt; 'MyISAM',
                          );
            $result = $this-&gt;db-&gt;manager-&gt;createTable($table_name, $table['fields'],$opts);
            if (PEAR::isError($result)) {
                return $result;
            }
        }</pre>]]></description>
      <content:encoded><![CDATA[<pre>Okay, I think I tracked down the code with one last try but add-patch.php in the bugs application here didn't like the name of the folder my file was in and wouldn't let me upload it... the change was in the function &quot;createTable&quot;, in this code block at line 657 in v 1.103 2006/10/21 15:00:24 :


        if ($create) {
		$opts =                           array(
                              'charset' =&gt; 'utf8',
                              'collate' =&gt; 'utf8_unicode_ci',
                              'type'    =&gt; 'MyISAM',
                          );
            $result = $this-&gt;db-&gt;manager-&gt;createTable($table_name, $table['fields'],$opts);
            if (PEAR::isError($result)) {
                return $result;
            }
        }</pre>]]></content:encoded>
      <dc:date>2007-06-10T23:44:14-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/9452/2007-06-10+19%3A31%3A11#2007-06-10+19%3A31%3A11">
      <title>pearbugs2006@... [2007-06-10 23:31]</title>
      <link>http://pear.php.net/bugs/9452#1181518271</link>
      <description><![CDATA[<pre>I'm sorry, because of the amount of time it was going to take to fix the problems I experienced in PHP I switched to another language for my product.  I don't have a running copy of the code anymore and I haven't been able to track down where I'd made the change.  But to my recollection, I found the point in the code where it actually created the tables and added a single line that passed the parameter to MySQL specifying that the table should be UTF-8.  This change affected all of the tables except the seq tables.  I don't remember whether it was in the Schema files or up in the MDB2 files... it might have actually been in the MySQL driver for MDB2.  In any case, I'm sure that it broke a whole bunch of stuff that I wasn't using.</pre>]]></description>
      <content:encoded><![CDATA[<pre>I'm sorry, because of the amount of time it was going to take to fix the problems I experienced in PHP I switched to another language for my product.  I don't have a running copy of the code anymore and I haven't been able to track down where I'd made the change.  But to my recollection, I found the point in the code where it actually created the tables and added a single line that passed the parameter to MySQL specifying that the table should be UTF-8.  This change affected all of the tables except the seq tables.  I don't remember whether it was in the Schema files or up in the MDB2 files... it might have actually been in the MySQL driver for MDB2.  In any case, I'm sure that it broke a whole bunch of stuff that I wasn't using.</pre>]]></content:encoded>
      <dc:date>2007-06-10T23:31:11-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/9452/2007-06-10+17%3A30%3A12#2007-06-10+17%3A30%3A12">
      <title>dufuz [2007-06-10 21:30]</title>
      <link>http://pear.php.net/bugs/9452#1181511012</link>
      <description><![CDATA[<pre>Well there is no loss in seeing the patch none the less</pre>]]></description>
      <content:encoded><![CDATA[<pre>Well there is no loss in seeing the patch none the less</pre>]]></content:encoded>
      <dc:date>2007-06-10T21:30:12-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/9452/2006-12-15+10%3A28%3A26#2006-12-15+10%3A28%3A26">
      <title>pearbugs2006@... [2006-12-15 15:28]</title>
      <link>http://pear.php.net/bugs/9452#1166196506</link>
      <description><![CDATA[<pre>The patch I made forces all tables to be UTF-8... I don't think you want that, do you?</pre>]]></description>
      <content:encoded><![CDATA[<pre>The patch I made forces all tables to be UTF-8... I don't think you want that, do you?</pre>]]></content:encoded>
      <dc:date>2006-12-15T15:28:26-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/9452/2006-12-15+09%3A39%3A53#2006-12-15+09%3A39%3A53">
      <title>ifeghali [2006-12-15 14:39]</title>
      <link>http://pear.php.net/bugs/9452#1166193593</link>
      <description><![CDATA[<pre>Hello Tim,

Please submit the patch you made for Schema.php.</pre>]]></description>
      <content:encoded><![CDATA[<pre>Hello Tim,

Please submit the patch you made for Schema.php.</pre>]]></content:encoded>
      <dc:date>2006-12-15T14:39:53-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/9452/2006-11-25+07%3A21%3A09#2006-11-25+07%3A21%3A09">
      <title>pearbugs2006@... [2006-11-25 12:21]</title>
      <link>http://pear.php.net/bugs/9452#1164457269</link>
      <description><![CDATA[<pre>Okay, to revise that again, it *is* actually modifying the Chinese strings too... what's happening is that in every value that has any unicode characters with codes above the Latin ones, it's trimming off everything to the left of the first unicode character.</pre>]]></description>
      <content:encoded><![CDATA[<pre>Okay, to revise that again, it *is* actually modifying the Chinese strings too... what's happening is that in every value that has any unicode characters with codes above the Latin ones, it's trimming off everything to the left of the first unicode character.</pre>]]></content:encoded>
      <dc:date>2006-11-25T12:21:09-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/9452/2006-11-25+05%3A56%3A34#2006-11-25+05%3A56%3A34">
      <title>pearbugs2006@... [2006-11-25 10:56]</title>
      <link>http://pear.php.net/bugs/9452#1164452194</link>
      <description><![CDATA[<pre>So it turns out to be a bit more complicated... my changes to Schema.php allowed me to create tables in UTF-8, but because in Parser.php the encoding is fixed to ISO-8859-1,  when I added initialization values it was shredding my Chinese characters before they ever made it to the database. So I had to make my own version of that too.

I'm in PHP5 and I removed the charset parameter from the parent::XML_Parser() call in the constructor.  Strangely, although that got it working with Chinese characters, Spanish values are being messed up.  When there's an ene (ñ, U+00F1) in the contents of an XML tag, all of the characters to the left of the *first* ene in the field are being trimmed.

And of course, I'm having to set the charset to &quot;utf8&quot; in the MySQL dsn.</pre>]]></description>
      <content:encoded><![CDATA[<pre>So it turns out to be a bit more complicated... my changes to Schema.php allowed me to create tables in UTF-8, but because in Parser.php the encoding is fixed to ISO-8859-1,  when I added initialization values it was shredding my Chinese characters before they ever made it to the database. So I had to make my own version of that too.

I'm in PHP5 and I removed the charset parameter from the parent::XML_Parser() call in the constructor.  Strangely, although that got it working with Chinese characters, Spanish values are being messed up.  When there's an ene (ñ, U+00F1) in the contents of an XML tag, all of the characters to the left of the *first* ene in the field are being trimmed.

And of course, I'm having to set the charset to &quot;utf8&quot; in the MySQL dsn.</pre>]]></content:encoded>
      <dc:date>2006-11-25T10:56:34-00:00</dc:date>
    </item>
</rdf:RDF>