Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
htaccess and utf-8
#8
Hello,
surely your server has not utf8 encoding by default. I did not know much about this, but I resolved something like it, doing a changes in admin/inc/contactform.php, by example:

change the line:
$cdata = $thislog->addChild('from');
by this:
$cdata->addCData(utf8_encode($from));

change the line:
$cdata = $thislog->addChild('subject');
by
$cdata->addCData(utf8_encode($subject));

Change the line:
foreach ( $temp as $key => $value ) {
$body .= ucfirst($key) .": ". $value ."<br />";
$cdata = $thislog->addChild(clean_url($key));
$cdata->addCData($value);
}

by
foreach ( $temp as $key => $value ) {
$body .= ucfirst($key) .": ". $value ."<br />";
$cdata = $thislog->addChild(clean_url($key));
$cdata->addCData(utf8_encode($value));
}


For trying......


Too, change the encoding of the browser, to see if it looks good; and check what type of encoding is used.
Regards.
Reply


Messages In This Thread
htaccess and utf-8 - by simple123 - 2010-03-02, 14:41:23
htaccess and utf-8 - by Zegnåt - 2010-03-02, 14:55:46
htaccess and utf-8 - by simple123 - 2010-06-30, 00:19:33
htaccess and utf-8 - by simple123 - 2010-06-30, 00:20:45
htaccess and utf-8 - by simple123 - 2010-07-18, 01:50:11
htaccess and utf-8 - by Zegnåt - 2010-07-18, 02:24:46
htaccess and utf-8 - by simple123 - 2010-07-29, 04:00:29
htaccess and utf-8 - by cumbe - 2010-07-29, 04:25:32



Users browsing this thread: 1 Guest(s)