<div>Zdravim konferenci,</div><div><br></div><div>snazim se porovnat dva retezce v php. Jeden mam nacteny z xml ($kategorie_dodavatele), vse by melo byt utf-8.</div><div><br></div><div>Kod:</div><div><br></div><div>echo $kategorie_dodavatele;</div>
<div><br></div><div>if  ($kategorie_dodavatele==&quot;Profesionální technika/Reprosoustavy&quot;){echo &quot;shoda&quot;;} else {echo &quot;bohuzel to nejde&quot;;}</div><div><br></div><div>Vypise:</div><div><br></div><div>
<span style="font-family:&#39;Times New Roman&#39;;font-size:medium">Profesionální technika/Reprosoustavy bohuzel to nejde</span>
</div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br></span></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">V čem by mohl být problém? Ty řetězce jsou stejné, alespoň podle toho výpisu z echa, ale if je bere jako rozdílné ...</span></div>
<div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br></span></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">Jak to správně porovnávat?</span></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br>
</span></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">Googlil jsem hodinu, zkoušel jsem i převody kódování, ale někde mám něco blbě. </span></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br>
</span></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">( </span><font face="Times New Roman" size="3">iconv_set_encoding($kategorie_dodavatele, &quot;utf-8&quot;); )</font></div><div><br></div>
<div><font face="Times New Roman" size="3">Prece takhle trivialni zalezitost musi fungovat ...</font></div><div><font face="Times New Roman" size="3"><br></font></div><div><font face="Times New Roman" size="3">Tusim, ze bude asi problem s kodovanim, ale kdyz to pres echo vypisuje korektne, zadny rozsypany caj...</font></div>
<div><font face="Times New Roman" size="3"><br></font></div><div><font face="Times New Roman" size="3">Nevim co s tim.</font></div><div><font face="Times New Roman" size="3"><br>Diky za nakopnuti,</font></div><div><font face="Times New Roman" size="3"><br>
</font></div><div><font face="Times New Roman" size="3">Honza Puhony</font></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br></span></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br>
</span></div>