Author Topic: Problem with accented characters  (Read 7731 times)

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Problem with accented characters
« on: 10 February 2008, 17:04 »
Hi,

I have a problem with accented characters with "latest articles" plugin. They're all replaced by a symbol. Even if I build my own XML file with a forced charset (ISO-8859-1 or UTF-8).

Could you help me in correcting this issue, please ?

Thank you for your help ;)

Arnaud

PS : my template is set with ISo 8859

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,453
    • View Profile
    • Sakic.Net
Re: Problem with accented characters
« Reply #1 on: 10 February 2008, 19:47 »
AJAX only supports UTF-8 so there could be problems if you have different encoding on your site.

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Problem with accented characters
« Reply #2 on: 11 February 2008, 11:00 »
When i force the template in UTF-8 i still have the problem.

And all of your plugins are defined with ISO-8859-1 encoding option...

I've been searching an answer for this problem. To use iso-8859-1 encoding format, we need to force it in mod_ajaxlisting.php with :

Code: [Select]
header("Content-Type:text/plain; charset=iso-8859-1");
As this file is encrypted, i cannot try this modification...

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Problem with accented characters
« Reply #3 on: 12 February 2008, 10:33 »
Hi Saka,

I've totally rebuild from scrach a new website with this configuration :
- database charset set to UTF-8 by default
- joomla 1.013 french edition with charset defined with UTF-8
- default joomla template and only your Ajax Listing module installed.

Conclusion : i still have accents problems ! Look at the screen attached

Could you provide a fix to this issue, please ?

thx

Arnaud

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,453
    • View Profile
    • Sakic.Net
Re: Problem with accented characters
« Reply #4 on: 12 February 2008, 14:44 »
Can you send me a mail with access info to your site and I will do my tests.

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Problem with accented characters
« Reply #5 on: 18 February 2008, 16:00 »
Saka,

I've sent you all information by email. 8 days later, I'm still waiting for your support !

Could you please do the necessary to solve this problem. I can't wait anymore.

Thank you.

Arnaud

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Problem with accented characters
« Reply #6 on: 25 February 2008, 10:43 »
Saka,

What's going wrong with you ? You sell products and you don't assume support ?? Wake up man !

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Problem with accented characters
« Reply #7 on: 09 March 2008, 13:31 »
Emir,

The problem with accented chars make IE not loading the plugin (XML and PHP version).

No problem with Firefox 2 and Opera 9.26 (Windows version). Not tested with Conqueror...

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Problem with accented characters
« Reply #8 on: 09 March 2008, 14:49 »
SOLVED !!!!  ;D ;D ;D ;D

I've found how to fix the accented chars issue (in a PHP plugin) :

Just replace :
Code: [Select]
return $content;
by :
Code: [Select]
return mb_convert_encoding($content, "UTF-8", "ISO-8859-1");
Enjoy  8)

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,453
    • View Profile
    • Sakic.Net
Re: Problem with accented characters
« Reply #9 on: 10 March 2008, 03:08 »
That's great, saves me a lot of testing.

Thanks!

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Problem with accented characters
« Reply #10 on: 10 March 2008, 12:47 »
You're welcome Emir :D

Now you can work hardly on multiple Ajax Listing instance  ;D ;D  :-*

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,453
    • View Profile
    • Sakic.Net
Re: Problem with accented characters
« Reply #11 on: 10 March 2008, 15:00 »
Yeah, I have an idea how to solve that. :)

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Problem with accented characters
« Reply #12 on: 10 March 2008, 17:10 »
Ahhhh ! What a wonderfull answer  :-* :-*

Arnaud

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Problem with accented characters
« Reply #13 on: 10 March 2008, 20:02 »
Emir,

I have developped my own PHP plugin to show my latest news. I'm currently searching a way to add some informations at the top of the module : links for live filter options (news categories).

When I insert a link (for example) or just a word, my plugin result is not shown (loading...).

Could you please tell me :

1) how can i add other informations than table result in my plugin ?
2) how can i set a variable (category name or id) or something else to apply the selected filter (link).

Thank you for your help ;)