Keyword

International caracters?

More
16 years 6 months ago - 13 years 7 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
16 years 6 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
16 years 6 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
16 years 6 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
16 years 4 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
16 years 4 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
16 years 3 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
16 years 2 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
15 years 9 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
15 years 3 weeks 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