Language problem

Language problem

Postby moi » Wed Feb 16, 2011 4:30 pm

Hi, I got problem with french character (é è à...), only on description page.
How can I fix it ?
moi

 
Posts: 16
Joined: Tue Feb 16, 2010 4:28 pm

Re: Language problem

Postby moi » Sat Feb 19, 2011 9:52 am

Help please
moi

 
Posts: 16
Joined: Tue Feb 16, 2010 4:28 pm

Re: Language problem

Postby soulgeek » Sat Feb 19, 2011 10:18 am

Try to use php str_replace() function and replace the special characters with Spaces.
soulgeek

 
Posts: 35
Joined: Tue Feb 15, 2011 4:45 am

Re: Language problem

Postby moi » Sat Feb 19, 2011 10:26 am

How can I do ? I only have problem on description item, wich come from amazon.
On title item, category, feddbacks etc I don't have this problem
moi

 
Posts: 16
Joined: Tue Feb 16, 2010 4:28 pm

Re: Language problem

Postby soulgeek » Sat Feb 19, 2011 1:04 pm

1- go to product.tpl
2- look for <?php echo $this->product->description; ?>
3- take the output of this statement in a Variable.
4- use str_replace to replace any content of that variable.

Cheers
Ankur
soulgeek

 
Posts: 35
Joined: Tue Feb 15, 2011 4:45 am

Re: Language problem

Postby moi » Sat Feb 19, 2011 1:40 pm

Thanks for your help, but i dont understand points 3 and 4. :(
moi

 
Posts: 16
Joined: Tue Feb 16, 2010 4:28 pm

Re: Language problem

Postby moi » Sat Feb 19, 2011 2:06 pm

+ i got the same prblem in admin when i want to create a category.
I'm working on amazon.fr, and category name don't show special character (é à è)
moi

 
Posts: 16
Joined: Tue Feb 16, 2010 4:28 pm

Re: Language problem

Postby soulgeek » Sat Feb 19, 2011 5:27 pm

Ok, i have done some codes for you to achieve this:

<?php
$amazonfrance = $this->product->description;
$amazonfrance = str_replace(array('é' , 'à' , 'è' ), ' ' ,$amazonfrance);
echo $amazonfrance;
?>


Above code will replace Special Char to Space. ok?

Cheers
Ankur
soulgeek

 
Posts: 35
Joined: Tue Feb 15, 2011 4:45 am


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron