Aldo
Total Posts: 47
Joined: 2008-02-19
Hi all,
After installation of Magento I get the following Error in the Frontend:
Notice : iconv_substr () [function . iconv - substr] : Wrong charset , conversion from ` ISO-8859-1' to ` UCS - 4LE is not allowed in / web / shop / app / code / core / Mage / Log / Model / Mysql4 / Visitor . php on line 54
Does anybody have a solution for this?
Thanks!
Aldo
Posted: February 25 2008
| top
Aldo
Total Posts: 47
Joined: 2008-02-19
We install PHP5 as a CGI binary, as the provider does not have installed the pdo_mysq extension.
So we get this error only in a PHP5 as a CGI binary installation.
Would appreciate any help!
Posted: February 27 2008
| top
| # 1
Aldo
Total Posts: 47
Joined: 2008-02-19
Nobody an idea here?
Posted: February 28 2008
| top
| # 2
Brightside
Total Posts: 3
Joined: 2008-05-08
Anything new on this one?
I did a fresh install with php5-cgi and ran into same problem.
Anything I might miss in my server?
Posted: May 8 2008
| top
| # 3
Juxecl
Total Posts: 37
Joined: 2007-12-08
You could try changing the AddDefaultCharset directive in .htaccess
# AddDefaultCharset OffAddDefaultCharset UTF - 8
Posted: May 9 2008
| top
| # 4
Brightside
Total Posts: 3
Joined: 2008-05-08
Rowd - 09 May 2008 03:23 AM
You could try changing the AddDefaultCharset directive in .htaccess
# AddDefaultCharset OffAddDefaultCharset UTF - 8
Tested it already, no luck.
Posted: May 9 2008
| top
| # 5
Juxecl
Total Posts: 37
Joined: 2007-12-08
I guess that was a pretty optimistic suggestion
There’s no character set given in the iconv_substr() function so it should use iconv.internal_encoding for the conversion. You could try changing the value of iconv.internal_encoding to ‘UTF-8’.
Posted: May 9 2008
| top
| # 6
Brightside
Total Posts: 3
Joined: 2008-05-08
Rowd - 09 May 2008 11:47 AM
There’s no character set given in the iconv_substr() function so it should use iconv.internal_encoding for the conversion. You could try changing the value of iconv.internal_encoding to ‘UTF-8’.
Can be done in php.ini? Not sure how to change php settings for cgi version.
Posted: May 13 2008
| top
| # 7
VimS
Total Posts: 23
Joined: 2008-04-27
Hi!
I’ve got the same Problem.
Any solutions or suggestions?!
Posted: May 23 2008
| top
| # 8
Core
Total Posts: 68
Joined: 2008-03-09
Put these lines at the top of the main index.php file.
iconv_set_encoding ( "internal_encoding" , "UTF-8" ); iconv_set_encoding ( "output_encoding" , "ISO-8859-1" );
Posted: August 14 2008
| top
| # 10
MageParts
Total Posts: 413
Joined: 2007-11-18
This should work, but be careful not to use it in the wrong places. It will set the header from UTF-8 to ISO-8859-1.
Mage :: app ()-> getResponse ()-> setHeader ( "Content-Type" , "text/html; charset=ISO-8859-1" , true );
Hope it helps someone ^^
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 Quantity | Restrict Categories
Hire Us!
Posted: February 9 2009
| top
| # 11
AlexeyShtrakhov
Total Posts: 16
Joined: 2008-07-11
Tampere, Finland
Thanks Bockbertil!!! You saved my life
Sunny_S
Total Posts: 30
Joined: 2009-05-08
India
Hi MageParts,
Your solution of adding:
Mage::app()->getResponse()->setHeader("Content-Type", “text/html; charset=ISO-8859-1”,true);
worked great . i was struggling from a long time and didnt want to change it for whole site, and found your post the right solution! hope this helps many more.
Thanks,
Sunny
Signature
Software Engineer
BestWorldsIT.com
coochy
Total Posts: 69
Joined: 2009-01-20
Hi Mageparts, can you tell me exactly where to put this code? Which file & which position please?
Thanks so much
Coochy