17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2413 Views |
-
Email encoding iso8859-2

25 January 2008 at 1:09am
Hello
I have problems to encode contact form emails into my country iso2
Thunderbird shows iso8859-15(sic!)
How to set my iso8859-2
in my class that extends UserDefinedForm_Controller
...
private function encode( $submitedFields )
{
while ($submitedFields->next())
{
$submitedFields->current()->Title = iconv( "utf-8", "iso8859-2", $submitedFields->current()->Title );
$submitedFields->current()->Value = iconv( "utf-8", "iso8859-2", $submitedFields->current()->Value );
}
return $submitedFields;
}
... -
Re: Email encoding iso8859-2

25 January 2008 at 1:59am
Hi,
I've had some troubles with emails too and solved it by changing all the charsets in
sapphire/core/Email.php fromiso-8859-15
to
utf-8
I think it's at about 5 or 6 places in that file that you can replace it.
Hope that helps.
-
Re: Email encoding iso8859-2

25 January 2008 at 9:54am
I've reported this in the issue tracker @ http://open.silverstripe.com/ticket/2176
| 2413 Views | ||
|
Page:
1
|
Go to Top |



