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
win-1250 2 utf-8 bez iconv() na serveru

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 16.02.2006 20:34    Post subject: win-1250 2 utf-8 bez iconv() na serveru Add user to your forum ignore list Reply with quote

Ovak, nemam iconv na serveru. Pokušavam povući rss feed od jednog win-1250 kodiranog site-a i prikazati ga kak spada u utf-8...
Back to top
View user's profile Send private message Visit poster's website
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 16.02.2006 21:51    Post subject: Add user to your forum ignore list Reply with quote

Ufff, uspio sam nekako. Poanta priče je, nemojte slučajno koristiti više od jedne str_replace funkcije da bi zamijenili dijakritičke znakove entitetima jer se onda sve pošemeri Smile
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 16.02.2006 21:56    Post subject: Add user to your forum ignore list Reply with quote

Možda imaš iconv kompajliran u PHP?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 16.02.2006 22:08    Post subject: Add user to your forum ignore list Reply with quote

Nemam, znam da nemam, probao sam Smile
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 17.02.2006 00:23    Post subject: Add user to your forum ignore list Reply with quote

Ako ti išta bude služilo...

Code:
/** Returns the UTF multibyte char corresponding to the Unicode value
 * from php.net, courtesy <romans@void.lv>
 */
function code2utf($num){
   if($num < 128) return chr($num);
   if($num < 2048) return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
   if($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
   if($num < 2097152) return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
   return false;
}
Back to top
View user's profile Send private message Send e-mail Visit poster's website
scip



Joined: 19 May 2005
Posts: 25
Location: osijek

PostPosted: 17.02.2006 03:09    Post subject: Add user to your forum ignore list Reply with quote

http://mikolajj.republika.pl/

_________________
Let Your Bookmarks Define You ..
Back to top
View user's profile Send private message
gog



Joined: 18 Jun 2004
Posts: 679
Location: zagreb

PostPosted: 17.02.2006 15:28    Post subject: Add user to your forum ignore list Reply with quote

Tnx!!!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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