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
Naša slova pri učitavanju podataka

 
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
ZeroStyle



Joined: 23 Apr 2005
Posts: 8
Location: Lukavac

PostPosted: 10.03.2006 16:03    Post subject: Naša slova pri učitavanju podataka Add user to your forum ignore list Reply with quote

Pozdrav, imam jedan manji problem

Code:


<%
url="http://www.google.com"
set Http = server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
Http.Open "GET", url, False
Http.Send

Dim varijabla
varijabla = Http.responseText

Response.Write varijabla
%>


Kod radi super, međutim nema nasih slova. Pokusao sam da u vrh stavim

<%@ CodePage = 1250 LCID = 1050 %>

Ili
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">

Takođe sam probao i

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">

Ne pomaze ima li lijeka da ucitam site i da budu nasa slova.

_________________
Prije nego išta počneš da uradiš moraš prije toga još nešto uraditi. [ZeroStyle]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
pez



Joined: 10 Mar 2006
Posts: 50
Location: okolica Zagreba

PostPosted: 10.03.2006 20:20    Post subject: Add user to your forum ignore list Reply with quote

probaj staviti utf-8, sve ovisi pod kojim je tipom spremljeno (u bazu ili u kod)

_________________
|| http://www.lab404.net ||
Back to top
View user's profile Send private message
ZeroStyle



Joined: 23 Apr 2005
Posts: 8
Location: Lukavac

PostPosted: 11.03.2006 08:18    Post subject: poz Add user to your forum ignore list Reply with quote

Vidi ovo, u djelu odakle vucem informacije koristeno je:
charset=windows-1250

I kad ucitam taj iste dobijem umjesto čćšđž upitnike i negdje fali slova. Tako i sa bilo kojim sajtom kojeg ucitam probao sam sve pa i utf-8 ne pomaze nista se ne mjenja, jednostavno pri ucitavanju web strane u varijablu eliminiše čćšđž

_________________
Prije nego išta počneš da uradiš moraš prije toga još nešto uraditi. [ZeroStyle]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Granda



Joined: 11 Aug 2005
Posts: 51

PostPosted: 11.03.2006 11:03    Post subject: Add user to your forum ignore list Reply with quote

ako koristiš PHP probaj :

echo iconv("windows-1250", "UTF-8", $tekst)

funkcija pretvara iz jednog charseta u drugi tekst, tj. iz charseta koji ti je definiran u bazi, u charset koji ti je definiran na stranici.
Back to top
View user's profile Send private message
ZeroStyle



Joined: 23 Apr 2005
Posts: 8
Location: Lukavac

PostPosted: 12.03.2006 15:11    Post subject: hmm Add user to your forum ignore list Reply with quote

ne, koristim asp , neznam bilo koji sadrzaj ili site da ucimat isto. probao sam i sa replace funkcijom al bezuspjesno.

_________________
Prije nego išta počneš da uradiš moraš prije toga još nešto uraditi. [ZeroStyle]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 12.03.2006 18:55    Post subject: Add user to your forum ignore list Reply with quote

Kao prvo, ovo što radiš je opasno - ako pretjeraš sa requestovima Google će te bannati na neko vrijeme. Dakle pazi da ne pretjeraš.

Prvo moraš saznati što dobijaš natrag da bi mogao namjestiti Content-Type header i META tag. Makni sve što si dodatno radio na skripti osim outputanja stranice. Pozovi to iz browsera, falit će ti naša slova. Odi u view->"character encoding" (Firefox) i mijenjaj encoding dok ti se ne prikažu naša slova. To je pravi encoding, stavi ga u META tag i Content-Type header.
Back to top
View user's profile Send private message Send e-mail 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