MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
RSS import (cyrillic feeds) (magpie problem)
AuthorText
asovetov
Junior Member

Posts: 48
Contributes: 50

Gender: _MALE_
Online: No

Languages: Russian
Country: Russia
Date: 02/03/2009 04:47
RSS import (cyrillic feeds) (magpie problem)
#post18600
Site url: http://memht.org.ru
MemHT version: 4.0.1
Hosting OS: Linux
PHP and MySQL versions: php5
Installed addons/scripts: none
Error/Problem: magpie

How can I make a magpie read russian in UTF8 or CP1251 ???
I tried configure inc/magpie/rss_parse.inc but it has not brought results.


problem is ... when added cyrillic feeds, i see "?????" instead of cyrillic


P.S. in memht5 will also magpie use??
Edited: 03/03/2009 19:41
Русскоязычная поддержка, обращайтесь в личку или создавайте тут топики и кидайте в личку ссылку, а то могу не найти
Russian support - Русская поддержка
Russian Language assistance, contact PM or make thread and post link in PM.
Delete Edit Quote
 
asovetov
Junior Member

Posts: 48
Contributes: 50

Gender: _MALE_
Online: No

Languages: Russian
Country: Russia
Date: 03/03/2009 00:10
Re: magpie problem
#post18617
as sample - this is a part of cache file (/inc/magpie/cache)

quote


<div class="small">  - <a title="??? ????????? ????? ???????" href="../../../guide_4_ru-K...html

Русскоязычная поддержка, обращайтесь в личку или создавайте тут топики и кидайте в личку ссылку, а то могу не найти
Russian support - Русская поддержка
Russian Language assistance, contact PM or make thread and post link in PM.
Delete Edit Quote
 
asovetov
Junior Member

Posts: 48
Contributes: 50

Gender: _MALE_
Online: No

Languages: Russian
Country: Russia
Date: 03/03/2009 01:20
Re: magpie problem
#post18624
i break my brain =( maybe edit regular expressions in magpie? but i dont know how =(
Русскоязычная поддержка, обращайтесь в личку или создавайте тут топики и кидайте в личку ссылку, а то могу не найти
Russian support - Русская поддержка
Russian Language assistance, contact PM or make thread and post link in PM.
Delete Edit Quote
 
asovetov
Junior Member

Posts: 48
Contributes: 50

Gender: _MALE_
Online: No

Languages: Russian
Country: Russia
Date: 03/03/2009 19:18
Re: magpie problem
#post18637
cyrillic feeds export fine =)))

quote
File: /inc/magpie/rss_fetch.inc
change this:
if ( !defined('MAGPIE_OUTPUT_ENCODING'Smile ) {
define('MAGPIE_OUTPUT_ENCODING', ' ISO-8859-1'Smile;
}

if ( !defined('MAGPIE_INPUT_ENCODING'Smile ) {
define('MAGPIE_INPUT_ENCODING', 'null'Smile;
}

if ( !defined('MAGPIE_DETECT_ENCODING'Smile ) {
define('MAGPIE_DETECT_ENCODING', true);
}

on this:
if ( !defined('MAGPIE_OUTPUT_ENCODING'Smile ) {
define('MAGPIE_OUTPUT_ENCODING', 'windows-1256'Smile;
}

if ( !defined('MAGPIE_INPUT_ENCODING'Smile ) {
define('MAGPIE_INPUT_ENCODING', null);
}

if ( !defined('MAGPIE_DETECT_ENCODING'Smile ) {
define('MAGPIE_DETECT_ENCODING', false);
}

File: /inc/magpie/rss_parse.inc
change this:
function MagpieRSS ($source, $output_encoding='ISO-8859-1',
$input_encoding=null, $detect_encoding=true)

on this:
function MagpieRSS ($source, $output_encoding='windows-1256',
$input_encoding=null, $detect_encoding=false)
Русскоязычная поддержка, обращайтесь в личку или создавайте тут топики и кидайте в личку ссылку, а то могу не найти
Russian support - Русская поддержка
Russian Language assistance, contact PM or make thread and post link in PM.
Delete Edit Quote
 
Gerontos
Junior Member

Posts: 34
Contributes: 27

Gender: _MALE_
Online: No

Version: 4.01
Country: Ukraine
Languages: Ukraine
Date: 05/03/2009 14:27
Re: RSS import (cyrillic feeds) (magpie problem)
#post18650
Кинь код без этих Смайлов!
The thought is material, create the world around...
Delete Edit Quote
 
asovetov
Junior Member

Posts: 48
Contributes: 50

Gender: _MALE_
Online: No

Languages: Russian
Country: Russia
Date: 06/03/2009 20:58
Re: RSS import (cyrillic feeds) (magpie problem)
#post18674
Mem maybe change magpie on something normally working with cyrillic?

My hack work bad because detect_encoding=false and cp1256 not quite russian =(
Русскоязычная поддержка, обращайтесь в личку или создавайте тут топики и кидайте в личку ссылку, а то могу не найти
Russian support - Русская поддержка
Russian Language assistance, contact PM or make thread and post link in PM.
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.191.106

Username
Password
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo