View Single Post
  #102  
Old 12-03-2012, 07:11 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart Adapt Template

Quote:
Phil, it is working now. However, I'm disappointed to find out that it does not support UTF-8 text encoding. Testimonials that are written in my language are rendered unreadable.

Is there a way to implement UTF-8 support?

Hi Pitak, sorry for the delay, here's what you do...

1) In testimonial_send.php

Before...

Code:
if (mysql_errno() == 0) {

Insert...

Code:
mysql_query("SET NAMES 'utf8'");

In the same file, replace the two instances of...
Code:
. "Content-Type: text/html; charset=\"ISO-8859-1\"\n"

With...

Code:
. "Content-type: text/html; charset=\"UTF-8\"\n"

2) In /admin/grid/inc/prepare_grid.php

Ensure this line appears after the opening <?php

If your prepare_grid.php file is encoded, use the attached.

Code:
mysql_query("SET NAMES 'utf8'");

Here is an example of Thia text in a testimonial
Attached Files
File Type: php prepare_grid.php (3.7 KB, 2 views)
__________________
xcartmods.co.uk
Reply With Quote