- Posts: 1
COMMUNITY FORUM
International caracters?
- JoZ3
-
- Offline
- New Member
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);
$data = explode(':::::', utf8_decode($posting));
Now Working!!!!!!!!!!!!!!!!
Try
Please Log in or Create an account to join the conversation.
- carly23420
-
- Offline
- New Member
- Posts: 9
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.
- passarododo
-
- Offline
- New Member
- Posts: 1
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.
- schlogo
-
- Offline
- New Member
- Posts: 2
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.
- schlogo
-
- Offline
- New Member
- Posts: 2
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.
- austantinua
-
- Offline
- New Member
- Posts: 1
$ 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.
- ODI
-
- Offline
- New Member
- Posts: 3
...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
in<?php echo $feed->get_title(); ?>
.<?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:
toreturn date($date_format, $this->data);
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.
- korocop
-
- Offline
- New Member
- Posts: 8
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.
- ODI
-
- Offline
- New Member
- Posts: 3
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.
- korocop
-
- Offline
- New Member
- Posts: 8
:(
Please Log in or Create an account to join the conversation.
- ODI
-
- Offline
- New Member
- Posts: 3
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.
- korocop
-
- Offline
- New Member
- Posts: 8
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.
- inukshuk
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- korocop
-
- Offline
- New Member
- Posts: 8
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.
- alhakim
-
- Offline
- New Member
- Posts: 1
$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.
- lremigio
-
- Offline
- New Member
- Posts: 1
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.
- lukass2000
-
- Offline
- Senior Member
- Posts: 47
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.
- korocop
-
- Offline
- New Member
- Posts: 8
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.
- Manoel Silva
-
- Offline
- New Member
- Posts: 4
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.
- Airtek
-
- Offline
- Junior Member
- Posts: 23
I solved all my problems about charset and encoding!
Best regards
Pierpaolo
Please Log in or Create an account to join the conversation.