Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
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: 12)
 
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:  13
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
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
50148 users|573 users currently online|102290 forum posts