<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — PHP 8.1 onwards db_set_charset needs second parameter]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10206&amp;type=atom" />
	<updated>2023-02-24T09:56:26Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10206</id>
		<entry>
			<title type="html"><![CDATA[Re: PHP 8.1 onwards db_set_charset needs second parameter]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42121#p42121" />
			<content type="html"><![CDATA[<p>Ok, done. Included in 2.4.15 at Sourceforge.net.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2023-02-24T09:56:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42121#p42121</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PHP 8.1 onwards db_set_charset needs second parameter]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42120#p42120" />
			<content type="html"><![CDATA[<p>Great to see the new release from FA. We have to fix one more issue&nbsp; from the gettext.inc <strong>add_domain</strong> function generates a big list of not found domain file error for /lang/C/LC_MESSAGES/C.po.&nbsp; So we need to add one if condition there </p><div class="codebox"><pre><code>  function add_domain($domain, $path = false, $version =&#039;&#039;)
    {   
        
        if ($path === false) </code></pre></div><p>With this <br /></p><div class="codebox"><pre><code>  function add_domain($domain, $path = false, $version =&#039;&#039;)
    {   
       if($domain == &#039;C&#039;)
        return;
        
        if ($path === false) </code></pre></div><p>The if condition prevents adding log lines of missing entries.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2023-02-24T09:36:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42120#p42120</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: PHP 8.1 onwards db_set_charset needs second parameter]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42117#p42117" />
			<content type="html"><![CDATA[<p>Thanks @kvvaradha.</p><p>We just got this included in the new minor 2.4.15 that is releasing today.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2023-02-24T08:48:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42117#p42117</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[PHP 8.1 onwards db_set_charset needs second parameter]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42115#p42115" />
			<content type="html"><![CDATA[<p>While activating an extension from php 8.1 onwards, we have an issue with </p><p>mysqli_set_charset second parameter cant be null,&nbsp; This happens from db_import function from maintenance_db.inc</p><div class="codebox"><pre><code>$encoding = null; // UI encoding for default site language is the default</code></pre></div><p>With<br /></p><div class="codebox"><pre><code>$encoding =&#039;utf8&#039;; // UI encoding for default site language is the default</code></pre></div><p>Or a valid $encoding needs to be passed here.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2023-02-24T06:31:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42115#p42115</id>
		</entry>
</feed>
