Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
PHP - trebam pomoc..

 
Post new topic   Reply to topic    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
dnk2001



Joined: 14 Jun 2005
Posts: 81
Location: Zagreb

PostPosted: 18.11.2010 12:15    Post subject: PHP - trebam pomoc.. Add user to your forum ignore list Reply with quote

Koristim jedan random image plugin za wordpress koji mi kao caption daje ime file-a iz foldera sa slikama i to je sve u redu.

Problem nastaje kad u nazivu imam čšžđ..

Da li netko ima ideju kako bi to mogao srediti. Nisam baš na najbolji u PHP, ali mislio sam s nekim str_replace ili tako nešto da kad povuče taj naziv da ga zamjeni.

Encoding je UTF-8, pa na osnovu toga kad povuče ime file-a ako je đ u nazivu kako da dobijem đ i na stranici. Sada mi samo prikaže onaj kao romb s upitnikom.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Adrian



Joined: 02 Apr 2004
Posts: 695
Location: Around & about

PostPosted: 18.11.2010 22:39    Post subject: Add user to your forum ignore list Reply with quote

A najbolje bi bilo da preimeniješ fileove ako možeš, da ne sadrže te znakove.

A ako to neide, probaj proć sve fajlove s kojima radiš i vidjet da li su svi u utf-8 enkodingu. Nekad jedan source file može hrpu sranja napravit.

A inače, str replace možeš probat, al ne znam samo oćeš mjenjat ćšž ili romb. Very Happy

gl

_________________
The quest for certainty blocks the search for meaning. Uncertainty is the very condition to impel a man to unfold his powers.
http://origami.hr
Back to top
View user's profile Send private message Visit poster's website
dnk2001



Joined: 14 Jun 2005
Posts: 81
Location: Zagreb

PostPosted: 19.11.2010 02:05    Post subject: Add user to your forum ignore list Reply with quote

obzirom da neće biti puno naziva u file-u sam stavio: ch, dj... a onda pretvorio u ć, đ..

radi, to je bitno.. Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group