Keyword

International caracters?

More
18 years 2 weeks ago #595 by JoZ3
Replied by JoZ3 on topic Re: International caracters?
First Thanks for this wonderfull module, is very cool.
I´m using language spanish, ths solution that appear here not working because solve the charset problem in the module but change the charset in all content from the website, but i found a solution, i tested and working fine for me, only change this line in mod_jw_srfr.php:
$data = explode(':::::', $posting);
for this
$data = explode(':::::', utf8_decode($posting));
.

Now Working!!!!!!!!!!!!!!!!

Try

Please Log in or Create an account to join the conversation.

More
18 years 5 days ago #596 by carly23420
Replied by carly23420 on topic Re: International caracters?
19657,

Just a quick note to say, thanks! I'd been having problems with weird characters showing up and your .php addition fixed it.

Cheers!

Please Log in or Create an account to join the conversation.

More
17 years 9 months ago #597 by passarododo
Replied by passarododo on topic Re: International caracters?
It dont work to me :(

My Rss are Ok.. but my menus, module titles and othes stuff are weird.. with strange caracteres  :(.

I try the 2 hints gave before.. but it not working... :(

Please Log in or Create an account to join the conversation.

More
17 years 8 months ago #598 by schlogo
Replied by schlogo on topic Re: International caracters?
Hello

I still have the issue with international characters like é et è. I tried the hacks but it still not display correctly  ???  Any advice?

Please Log in or Create an account to join the conversation.

More
17 years 8 months ago #599 by schlogo
Replied by schlogo on topic Re: International caracters?

Hello

I still have the issue with international characters like é et è. I tried the hacks but it still not display correctly  ???  Any advice?


I actually works , The modification was not made correctly :D

Please Log in or Create an account to join the conversation.

More
17 years 8 months ago #600 by austantinua
Replied by austantinua on topic Re: International caracters?
excusme,but forgiveness that line of mod_jw_srfr.php this code to be replaced
$ data = explode (':::::', $ posting);

For this
$ data = explode ('::::: 'utf8_decode ($ posting));

I do not find this line of code in the mod_jw_srfr.php

Thank for help

Please Log in or Create an account to join the conversation.

More
17 years 8 months ago #601 by ODI
Replied by ODI on topic Re: International caracters?
I didn't find these lines of code in mod_jw_srfr.php...

...but: I found it in the old Version of the Simple RSS Feed Reader. (Version 1.2)

But in the old Version there are missing some features so I didn't want to use it.
After some testing (I'm not very fit in PHP ;) ) I changed this line

<?php echo $feed->get_title(); ?>

in

<?php echo utf8_decode($feed->get_title()); ?>

.

It works for me. (German Umlauts etc...  8) )
.. In the same way, change it for $introtext, $fulltext ...

There was a problem with the timezone setting, too. I changed in simplepie.inc line 3090:

return date($date_format, $this->data);

to

return gmdate($date_format, $this->data);


Now the Simple RSS Feed Reader shows the correct time for Germany at the moment. (We do have Summertime / wintertime ... I'm not sure if its interesting for you people...)

Thanks for this module. Now it works perfect for me!  :)

Bye, ODI

Please Log in or Create an account to join the conversation.

More
17 years 8 months ago #602 by korocop
Replied by korocop on topic Re: International caracters?

the "$feed->handle_content_type();" works for me, but it modifies charaters of other modules, even the Site title  ???


any solution for that problem? my site is in Turkish language, but when i add this line for char. problem, the whole site is affected. what could i do?

Please Log in or Create an account to join the conversation.

More
17 years 7 months ago #603 by ODI
Replied by ODI on topic Re: International caracters?
Hi Korocop!

Have you tried my solution?
Forget the line "$feed->handle_content_type();". (Delete this line, if you added it before!)
Do the changes around the line: "<?php echo $feed->get_title(); ?>" and change this for example in "<?php echo utf8_decode($feed->get_title()); ?>" (This will help to let you show your "Title" in correct way - UTF8 decodet... )
Do the same with the other parts (introtext, fulltext ... etc), you use on your site!

Feedback is welcome! :)

Please Log in or Create an account to join the conversation.

More
17 years 7 months ago #604 by korocop
Replied by korocop on topic Re: International caracters?
yes i tried yours, but when i do your solution, i cannot take the headers of the news, the header is only "the site name(for me it is: NTVMSNBC)"
:(

Please Log in or Create an account to join the conversation.

More
17 years 7 months ago - 14 years 9 months ago #605 by ODI
Replied by ODI on topic [Solved] Re: International caracters?
I don't know if i understand you the right way ... What do you mean by "header" ? Maybe post your Site-URL?

I had to make 4 changes to the File "mod_jw_srfr.php":

- <?php echo utf8_decode($item->get_title()); ?> 2 Times! (Line 165 and 183)

- <?php echo utf8_decode($introtext); ?></p> Line 214

- <?php echo utf8_decode($fulltext); ?></p> Line 217

Maybe for Turkish, you have chose another decoding?

Please Log in or Create an account to join the conversation.

More
17 years 7 months ago #606 by korocop
Replied by korocop on topic Re: International caracters?
great, that is good, one step to perfect solution. now some international characters are fixed, but i have still problems with "ı", "ş", "ğ" letters. my site is not UTF8, it is iso-8859-9. is that a problem for solution?

i did what you say, now lots of problems solved, thank you very much for help. only few letters are problem now :(

Please Log in or Create an account to join the conversation.

More
17 years 7 months ago #607 by inukshuk
Replied by inukshuk on topic Re: International caracters?
ODI: It works for me (french accents) thanks  :D

Please Log in or Create an account to join the conversation.

More
17 years 7 months ago #608 by korocop
Replied by korocop on topic Re: International caracters?
ODI thaks for helping. i a perfect solution with your help.
from simplepie.org wiki

i added the lines just before "echo $item->get_title(); ?>" line at 163 and 181

"$feed->set_output_encoding('ISO-8859-9');
$feed->init();
$feed->handle_content_type();"

and now it is perfect :) :)

you colud change the "ISO-..." line for any other language.
the answers are here:

simplepie.org/wiki/faq/supported_character_encodings
and
simplepie.org/wiki/reference/simplepie/set_output_encoding

ODI thank you again ;)

Please Log in or Create an account to join the conversation.

More
17 years 6 months ago #609 by alhakim
Replied by alhakim on topic Re: International caracters?
I fixed the problem with the Swedish Characters by adding this line

$feed ->set_output_encoding('ISO-8859-1' );

after this

$feed = $item->get_feed();


Here:-

<?php
if($srfr_totalitems) { $i=0; }
foreach($first_items as $item ) {
if($srfr_totalitems) {if($i>=$srfr_totalitems) continue;}
$feed = $item->get_feed();
$feed->set_output_encoding('ISO-8859-1' );
?>

Good luck!
-Alhakim

Please Log in or Create an account to join the conversation.

More
17 years 6 months ago #610 by lremigio
Replied by lremigio on topic Re: International caracters?

the "$feed->handle_content_type();" works for me, but it modifies charaters of other modules, even the Site title  ???


any solution for that problem? my site is in Turkish language, but when i add this line for char. problem, the whole site is affected. what could i do?


Guys I need your help.

When I installed the module, that php file is not on the directory and anyway the module works but I have the problem because my site is Spanish. I updated the php file with your modifications and FTP it to the site and my problem still giving me garbage with spanish characters....

Any ideas why when installing the module the mod_jw_srfr.php file is not installed? And no matter what after doing the modifications still giving me the same errors?

Thanks for all possible help.

Can somebody posh hete the full php file so we can copy to our site? Please...

Lionel

Please Log in or Create an account to join the conversation.

More
17 years 4 months ago #611 by lukass2000
Replied by lukass2000 on topic Re: International caracters?
Hi!

I have installed "Simple RSS Feed Reader v1.4" but above information is no longer available.

How can I achieve in this version German characters (ä, ö, ü, ß) can be displayed correctly?

THANKS!

Please Log in or Create an account to join the conversation.

More
17 years 4 months ago #612 by korocop
Replied by korocop on topic Re: International caracters?
dear lucass
you can use this solution, only change "iso-8859-1" to german iso number.

I fixed the problem with the Swedish Characters by adding this line

$feed ->set_output_encoding('ISO-8859-1' );

after this

$feed = $item->get_feed();


Here:-

<?php
if($srfr_totalitems) { $i=0; }
foreach($first_items as $item ) {
if($srfr_totalitems) {if($i>=$srfr_totalitems) continue;}
$feed = $item->get_feed();
$feed->set_output_encoding('ISO-8859-1' );
?>

Good luck!
-Alhakim

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #613 by Manoel Silva
Replied by Manoel Silva on topic Re: International caracters?

I don't know if i understand you the right way ... What do you mean by "header" ? Maybe post your Site-URL?

I had to make 4 changes to the File "mod_jw_srfr.php":

- <?php echo utf8_decode($item->get_title()); ?> 2 Times! (Line 165 and 183)

- <?php echo utf8_decode($introtext); ?></p> Line 214

- <?php echo utf8_decode($fulltext); ?></p> Line 217

Maybe for Turkish, you have chose another decoding?


Following ODI's suggestion I have solved the problems I was having with the special characters for my language (brazilian portuguese), but for some reason, which I do not understand, I keep getting the text below inside my "polls" module:
MB DB function failed with error number 2006
MySQL server has gone away SQL=SELECT p.id, p.title FROM jos_polls AS p INNER JOIN jos_poll_menu AS pm ON pm.pollid = p.id WHERE ( pm.menuid = 1 OR pm.menuid = 0 ) AND p.published = 1
SQL =

SELECT p.id, p.title
FROM jos_polls AS p
INNER JOIN jos_poll_menu AS pm ON  pm.pollid = p.id
WHERE ( pm.menuid = 1 OR pm.menuid = 0 )
AND p.published = 1

Can anyone shed some light on this!?

Thanks,
:)

Please Log in or Create an account to join the conversation.

More
16 years 2 months ago #614 by Airtek
Replied by Airtek on topic Re: International caracters?
please sticky this useful post !

I solved all my problems about charset and encoding!

Best regards

Pierpaolo

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum