Sign in to follow this  
Followers 0
piterek

Still the same problem with _iNetGetSource ...

3 posts in this topic

Still the same problem with _iNetGetSource()...

When I try to get soruce from web like : http://www.izvestia.ru/ etc... It's returns source with "ĺđčŕëű äë˙ đĺôĺđŕňîâ, ýęçŕěĺíű, íîâîńňč, ŕíŕëčňčę"

Is there any other option to get source without use browser but with normal letters...???

Share this post


Link to post
Share on other sites



Do you have code you can post?

Is that the ONLY output you are getting or just a small portion of it?

Share this post


Link to post
Share on other sites

Example code:

#Include <INet.au3>
$url = "http://www.izvestia.ru/"
$source = _INetGetSource($url)
$source = StringLeft($source,1000)
MsgBox(4096,"Source",$source)

And this gives the result:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<meta name="verify-v1" content="WDrYkx9o0YDQwNLY46QJz9+wN3dTHL3NZhbwp1R/Qs4=" />

<title>Čçâĺńňč˙.Đó</title>

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

<meta name="keywords" content="Ăŕçĺňŕ Čçâĺńňč˙, 'Čçâĺńňč˙', đîńńčéńęŕ˙ ăŕçĺňŕ, îáůĺíŕöčîíŕëüíŕ˙, ěîńęâŕ, đĺăčîíű, đĺôĺđŕňű, ěŕňĺđčŕëű äë˙ đĺôĺđŕňîâ, ýęçŕěĺíű, íîâîńňč, ŕíŕëčňčęŕ, ôčíŕíńű, ďîńëĺäíčĺ ńîáűňč˙, Čçđŕčëü, ŃŘŔ, Ďóňčí, Áóř, Ńâĺňńęŕ˙ ćčçíü, Ňĺđŕęňű, 11 ńĺíň˙áđ˙, Ŕęóíčí, Ëčňĺđŕňóđŕ, Áčçíĺń, Ćčçíü, Řîó-áčçíĺń, Çâĺçäű, Ďîëčňčęŕ , Ýęîíîěčęŕ, Ęóëüňóđŕ, ×ĺ÷í˙, Ŕđőčâ, Îëčěďčŕäŕ, Ńďîđň, ×ĺěďčîíŕň ěčđŕ, Ëĺ÷ĺíčĺ, Ëĺęŕđńňâŕ, Ďđĺěčč, Öĺđĺěîíčč, Ńĺíńŕöč˙, Đĺďîđňŕć, Ôîňî, Íŕóęŕ, Ňĺëĺâčäĺíčĺ, Đĺęëŕěŕ, Ëó÷řčé, Ďđĺńńŕ, Ňĺđđîđčçě, Ęŕńü˙íîâ, Ńĺëĺçíăĺâ, Ćčđčíîâńęčé, Ôóňáîë, Ęóđíčęîâŕ, Ďóăŕ÷ĺâŕ, Ęčđęîđîâ, Ăŕëęčí, Áŕńęîâ, Çĺěôčđŕ, Áŕńęĺňáîë, Ŕâňîíîâîńňč, Ŕâňîěîáčëč, Ěóçűęŕ">

The same applies to other languages like German etc... but when I preview the source in browser (IE, Firefox), text is displayed correctly

(so when I use _IEBodyReadHTML or _IEBodyReadText function the text is correct... but I do not want to use the IE/FF UDF)

Any ideas for a solution??

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0