Author Topic: MOD WIKIPEDIA  (Read 147689 times)

0 Members and 1 Guest are viewing this topic.

Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: MOD WIKIPEDIA
« Reply #30 on: June 08, 2009, 03:29:12 PM »
Will you help me have a Turkish character problem.
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanın insana düşmanlığıdır.

rinaldos

  • Guest
Re: MOD WIKIPEDIA
« Reply #31 on: June 08, 2009, 03:31:40 PM »
I will try, which character makes the Problem?


Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: MOD WIKIPEDIA
« Reply #32 on: June 08, 2009, 03:46:44 PM »
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanın insana düşmanlığıdır.

rinaldos

  • Guest
Re: MOD WIKIPEDIA
« Reply #33 on: June 08, 2009, 03:52:17 PM »
Sorry, i can not help you, everytime i will be redirect to start Page, and you have a limitation with 5 pictures per guest.
Your link you posted doesn't work for me, if i click there, i will redirect to:
http://www.elemegim.info/?l=turkce

Greets


Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: MOD WIKIPEDIA
« Reply #34 on: June 08, 2009, 04:00:16 PM »
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanın insana düşmanlığıdır.

rinaldos

  • Guest
Re: MOD WIKIPEDIA
« Reply #35 on: June 08, 2009, 04:02:48 PM »
Ok, but there is the wiki infos shown. What kind of Problem do you have exactly?

Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: MOD WIKIPEDIA
« Reply #36 on: June 08, 2009, 06:16:18 PM »
(familyas?ndan evcille?tirilebilir bir ku? türüdür ve genelde çiftliklerde yeti?tirilir?)

Turkish state in this manner must be

familyasından evcilleştirilebilir bir kuş türüdür ve genelde çiftliklerde yetiştirilir)

proplem:
ı=?
ş=?
ö=?
ğ=?
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanın insana düşmanlığıdır.

rinaldos

  • Guest
Re: MOD WIKIPEDIA
« Reply #37 on: June 09, 2009, 12:02:31 AM »
did you gave a special keyword for wiki, or is it from the filename. Maybe there are problems with some turkish character :-(


Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: MOD WIKIPEDIA
« Reply #38 on: June 09, 2009, 08:33:47 AM »
please to look the original topic
the orginal topic no proplem

http://tr.wikipedia.org/wiki/Tavuk
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanın insana düşmanlığıdır.

rinaldos

  • Guest
Re: MOD WIKIPEDIA
« Reply #39 on: June 09, 2009, 09:10:17 AM »
Thats a Bigger Problem. It depends on the ISO CHARACTER SET. Your Website ist formated in charset=iso-8859-9 (turkish), The Artikel in WIKI is formated in UTF-8.
if you remove these line in functons.php

$summary 
utf8_decode($summary);

and you will reload your website, there are several special charackters. Now change the charset in the Webbrowser to UTF-8 and everything will be shown ok. Maybe you have to reorganize your Website completly to UTF-8.

Otherwise there is a hint on php.net: http://www.php.net/utf8_encode (look for iso-8859-9). To make your Problem a little bit smaller,

add above ?> in functions.php

function str_encode_iso_8859 ($string,$to="iso-8859-9",$from="utf8") {
        
$str_array = array(
       
chr(196).chr(177) => chr(253),
       
chr(196).chr(176) => chr(221),
       
chr(195).chr(182) => chr(246),
       
chr(195).chr(150) => chr(214),
       
chr(195).chr(167) => chr(231),
       
chr(195).chr(135) => chr(199),
       
chr(197).chr(159) => chr(254),
       
chr(197).chr(158) => chr(222),
       
chr(196).chr(159) => chr(240),
       
chr(196).chr(158) => chr(208),
       
chr(195).chr(188) => chr(252),
       
chr(195).chr(156) => chr(220)
       );
       return 
str_replace(array_keys($str_array), array_values($str_array), $string);
    return 
$string;
}


ach change

$summary 
utf8_decode($summary);

to

$summary 
str_encode_iso_8859($summary);


The result is:
WIKI
2003 yılında 24 milyar nüfus ile, Dünya'da en fazla bulunan kuş türüdür. İnsanlara iki çeşit sık kullanılan besin kaynağı sunarlar: etleri ve yumurtaları. Tavuklar uçamayan kuşlardandır. Yumurta ile çoğalırlar. Akciğerleri ile nefes alan tavuklar, otçul hayvanlardır.

And with the new function
2003 yılında 24 milyar nüfus ile, Dünya'da en fazla bulunan kuş türüdür. İnsanlara iki çeşit sık kullanılan besin kaynağı sunarlar: etleri ve yumurtaları. Tavuklar uçamayan kuşlardandır. Yumurta ile çoğalırlar. Akciğerleri ile nefes alan tavuklar, otçul hayvanlardır.

Not exactly the same, but i think a little bit better. To solve the whole Problem, is to format the Webpage to UTF-8 character. I think. Sorry, i have no more Idea :-(

Greets
ingo

Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: MOD WIKIPEDIA
« Reply #40 on: June 13, 2009, 09:38:47 AM »
Was perfect. Thank you very much.

the link : http://www.elemegim.info/r-test-64-tavuk-4205.html?l=turkce
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanın insana düşmanlığıdır.

Offline bergblume

  • Sr. Member
  • ****
  • Posts: 463
  • on to the top!
    • View Profile
Re: MOD WIKIPEDIA
« Reply #41 on: June 15, 2009, 09:58:48 PM »
ich habe noch eine frage:

wie kann ich z.b. diesen wikipedia-artikel bei mir integrieren?
http://de.wikipedia.org/wiki/Hirschberg_(Bayern)

ich habe bereits als  eingabe folgendes probiert:
Hirschberg_(Bayern)
Hirschberg (Bayern)
bei beiden Einträgen erscheint dann nichts...
wenn ich nur "Hirschberg" eingebe, wird diese Seite http://de.wikipedia.org/wiki/Hirschberg ausgespuckt (die ich aber nicht haben möchte)

daher die frage zum umgang bei wiki-artikeln mit Nachsatz in Klammern....

Rembrandt

  • Guest
Re: MOD WIKIPEDIA
« Reply #42 on: June 15, 2009, 10:09:59 PM »
Hi!
in deinem wunschlink ist die letzte klammer nicht mit verlinkt.

edit: soeben bei mir ausprobiert, funktioniert.

mfg Andi

Offline bergblume

  • Sr. Member
  • ****
  • Posts: 463
  • on to the top!
    • View Profile
Re: MOD WIKIPEDIA
« Reply #43 on: June 15, 2009, 10:22:23 PM »
was hast du in dein wiki-feld eingetragen??

Rembrandt

  • Guest
Re: MOD WIKIPEDIA
« Reply #44 on: June 15, 2009, 10:24:02 PM »
Hirschberg_(Bayern)

mfg Andi