Skip to content
⌘ NSIS Forum Archive

read a text file from internet and insert in variable

34 posts

Anders#
Originally Posted by r2du-soft View Post
if set the "current language for non-Unicode programs" to Persian (Iran) Then the messages show good.
That is how ANSI works.

To support all languages on all computers you must use Unicode. I don't think there are any download plug-ins that will give you raw bytes or hex bytes on the stack you are stuck with downloading to a file to $pluginsdir. If that is not acceptable then you must modify INetC yourself...
r2du-soft#
Originally Posted by Anders View Post
That is how ANSI works.

To support all languages on all computers you must use Unicode. I don't think there are any download plug-ins that will give you raw bytes or hex bytes on the stack you are stuck with downloading to a file to $pluginsdir. If that is not acceptable then you must modify INetC yourself...
Yes this not work with ansi!

but when i use the
 unicode true
in .nsi file,then use from:
MessageBox MB_OK|MB_RIGHT|MB_RTLREADING "سلام"
i see سلام in message


also when unicode is true
 unicode true
when i use inetc plugin i see the messagebox sample this:



but download the text file and read the file and show in messagebox is show good

inetc::get /NOCANCEL /SILENT "http://ariana-ac.ir/mjserver/white.txt" "$TEMP\Servers.txt" /end
FileOpen $4 "$TEMP\Servers.txt" r
FileRead $4 $1 
FileClose $4 

MessageBox MB_OK "$1"

My problem is here:
Why even though i use from
 unicode true
and use inetc::get with /TOSTACK the words in variable $1 is Unreadable!??
The only solution to fix the problem is re-writing the new plugin?
Or edit the inetc plugin?
r2du-soft#
Originally Posted by need9989 View Post
Can use curl.exe to get internet file


nsExec::ExecToStack '$MainPath\curl "http://google.com/File.txt"' $0
pop $0
pop $1

messagebox MB_OK "$1"
thanks need9989
but i do not want use from another exe file in installer.exe
r2du-soft#
really thank you Anders
in new version inetc plugin (v1.0.5.3) that you published,my problem solved
best regards