- Posts: 3
COMMUNITY FORUM
International caracters?
- ODI
- Offline
- New Member
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.