Pogledajte određenu poruku
Staro 03. 07. 2009.   #2
LiquidBrain
Milan Cvejic
Wrote a book
 
Avatar LiquidBrain
 
Datum učlanjenja: 05.09.2006
Lokacija: Beograd
Poruke: 1.241
Hvala: 32
73 "Hvala" u 56 poruka
LiquidBrain će postati "faca" uskoro
Pošaljite poruku preko Yahoo za LiquidBrain
Default

Mozda najbolje resenje je da konvertujesh string u UTF-8. Pa poste takav string staish u bazu
PHP kôd:
<?php
$url 
"neki url"
$input file_get_contents($url) or die('Could not access file: $url'); 

if(
preg_match_all('/<span>(.*?)<\/span>/s'$input$matchesPREG_SET_ORDER)) { 
foreach(
$matches as $match) {
    
//konvertuje string u UTF-8 enkodovanje
    
$str=mb_convert_encoding($match[1],"UTF-8","Windows-1250");
    echo (
$str) . "<br/><br/>";
  }
}
?>
__________________
http://weevify.com

Poslednja izmena od LiquidBrain : 03. 07. 2009. u 23:20.
LiquidBrain je offline   Odgovorite uz citat
"Hvala" LiquidBrain za poruku: