Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
Wrong charset, conversion from `ISO-8859-1’ to `UCS-4LE’ is not allowed in …
 
Core
Member
 
Total Posts:  68
Joined:  2008-03-09
 

Hi,

I’ve seen this problem mentioned in the forums several times but no one has actually said what it means and why it’s failing.  I’m not the only one having this issue, can someone please shed some light on it for the magento community?

I’ve had no problems installing Magento locally, but when I tried to install it on the webhost I get this error after the installation and when clicking the button to go to the frontend:

Note: I’ve removed my domain name which is where “...” appears below.

There has been an error processing your request.

Notice: iconv_substr() [function.iconv-substr]: Wrong charset, conversion from `ISO-8859-1’ to `UCS-4LE’ is not allowed in /var/www/sites/.../site/app/code/core/Mage/Log/Model/Mysql4/Visitor.php on line 99
Trace:
#0 [internal function]: mageCoreErrorHandler(8, ‘iconv_substr() ...’, ‘/var/www/sites/...’, 99, Array)
#1 /var/www/sites/.../site/app/code/core/Mage/Log/Model/Mysql4/Visitor.php(99): iconv_substr(’’, 0, 250)
#2 /var/www/sites/.../site/app/code/core/Mage/Log/Model/Mysql4/Visitor.php(73): Mage_Log_Model_Mysql4_Visitor->_saveVisitorInfo(Object(Mage_Log_Model_Visitor))
#3 /var/www/sites/.../site/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(347): Mage_Log_Model_Mysql4_Visitor->_afterSave(Object(Mage_Log_Model_Visitor))
#4 /var/www/sites/.../site/app/code/core/Mage/Core/Model/Abstract.php(235): Mage_Core_Model_Mysql4_Abstract->save(Object(Mage_Log_Model_Visitor))
#5 /var/www/sites/.../site/app/code/core/Mage/Log/Model/Visitor.php(136): Mage_Core_Model_Abstract->save()
#6 /var/www/sites/.../site/app/code/core/Mage/Core/Model/App.php(1032): Mage_Log_Model_Visitor->initByRequest(Object(Varien_Event_Observer))
#7 /var/www/sites/.../site/app/Mage.php(278): Mage_Core_Model_App->dispatchEvent(’controller_acti...’, Array)
#8 /var/www/sites/.../site/app/code/core/Mage/Core/Controller/Varien/Action.php(377): Mage::dispatchEvent(’controller_acti...’, Array)
#9 /var/www/sites/.../site/app/code/core/Mage/Core/Controller/Front/Action.php(40): Mage_Core_Controller_Varien_Action->preDispatch()
#10 /var/www/sites/.../site/app/code/core/Mage/Core/Controller/Varien/Action.php(335): Mage_Core_Controller_Front_Action->preDispatch()
#11 /var/www/sites/.../site/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(159): Mage_Core_Controller_Varien_Action->dispatch(’index’)
#12 /var/www/sites/.../site/app/code/core/Mage/Core/Controller/Varien/Front.php(146): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#13 /var/www/sites/.../site/app/Mage.php(427): Mage_Core_Controller_Varien_Front->dispatch()
#14 /var/www/sites/.../site/index.php(40): Mage::run()
#15 {main}

What does it mean?  how do I fix it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Core
Member
 
Total Posts:  68
Joined:  2008-03-09
 

Attached a copy of phpinfo output in case it’s relavent.
I also don’t have access to php.ini.

File Attachments
phpinfo.php.htm  (File Size: 579KB - Downloads: 115)
 
Magento Community Magento Community
Magento Community
Magento Community
 
Core
Member
 
Total Posts:  68
Joined:  2008-03-09
 

I’ve just tried editing the default .htaccess file

I’ve attempted changing this

AddDefaultCharset off
#AddDefaultCharset UTF-8

to this:

#AddDefaultCharset off
AddDefaultCharset UTF-8

But still with no luck.  How did others solve this problem?  I need urgent help please.

 
Magento Community Magento Community
Magento Community
Magento Community
 
VimS
Jr. Member
 
Total Posts:  23
Joined:  2008-04-27
 

Hi!

Got the same Problem.
Found an other thread about the same Problem:
CLICK

 
Magento Community Magento Community
Magento Community
Magento Community
 
Core
Member
 
Total Posts:  68
Joined:  2008-03-09
 

Putting these lines at the top of your index.php file solved it for me

iconv_set_encoding("internal_encoding""UTF-8");
iconv_set_encoding("output_encoding""ISO-8859-1");

 
Magento Community Magento Community
Magento Community
Magento Community
 
Etasker
Member
 
Total Posts:  54
Joined:  2008-07-17
Denmark
 

I just went in to the template

/public_html/app/design/frontend/default/08/template/page/html/head.phtml

Replaced:
<meta http-equiv="Content-Type" content="<?php echo $this->getContentType() ?>” />

With:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1” />

I don’t think is the best way to do it, but I think it’s the easiest.

 Signature 

My Magento shop E Tasker my other Magento shop E Skilte

 
Magento Community Magento Community
Magento Community
Magento Community
 
MageParts
Guru
 
Avatar
Total Posts:  411
Joined:  2007-11-18
 

You could also change the headers, have a look at this thread for more information http://www.magentocommerce.com/boards/viewthread/3791/.

 Signature 

MageParts creates high quality Magento extensions for your online business needs.

Visit us at http://www.mageparts.com/ for creative and useful extensions!

Some of our extensions: Drop-Down QuantityRestrict Categories

Hire Us!

 
Magento Community Magento Community
Magento Community
Magento Community
 
vincentlim
Jr. Member
 
Total Posts:  12
Joined:  2009-03-16
 

brand new installation with the I got this similar error in admin page:

Notice: iconv_strlen() [function.iconv-strlen]: Wrong charset, conversion from `ISO-8859-1’ to `UCS-4LE’ is not allowed in ../public_html/magento/lib/Zend/Date.php on line 680

Can anyone give the solutions ? Magento v1.3 seems to be quite buggy also.

regards,
Vincent

 
Magento Community Magento Community
Magento Community
Magento Community
 
vincentlim
Jr. Member
 
Total Posts:  12
Joined:  2009-03-16
 

brand new installation with the I got this similar error in admin page:

Noticeiconv_strlen() [function.iconv-strlen]Wrong charsetconversion from `ISO-8859-1' to `UCS-4LE is not allowed  in ../public_html/magento/lib/Zend/Date.php on line 680
Can anyone give the solutions ? Magento v1.3 seems to be quite buggy also.

regards,
Vincent

 
Magento Community Magento Community
Magento Community
Magento Community
 
trikke
Jr. Member
 
Total Posts:  7
Joined:  2009-07-10
 
Core - 14 August 2008 02:00 PM

Putting these lines at the top of your index.php file solved it for me

iconv_set_encoding("internal_encoding""UTF-8");
iconv_set_encoding("output_encoding""ISO-8859-1");

this seems to solve the problem for me to

i only had this problem in my admin panel never in the store front

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
819302 users|769 users currently online|519717 forum posts