Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
The website is expecting to recieve the string in Unicode(utf-8) encoding or Windows-1255 encoding.
I partialy succeded by :
But i have problem's with the language (Hebrew).
Open the file in NotePad a Copy the string and paste it to the web site , is working but not via the script...
while using iHttpOpen() i need to translate the string to UrlEncoded. Either using UrlEncode() of WinSock Extender, or by iContentUrl() of WinInet Extender.in both cases this function do not translate the Hebrew characters right.
Since the UrlEncode() & iContentUrl() can't handle hebrew characters so i decided solving it my self. Here is the code:
;encode the query data to url format #DefineFunction QueryEncode( QueryString ) Heb="ú ù ø ÷ ö õ ô ó ò ñ ð ï î í ì ë ê é è ç æ å ä ã â á à" ;UrlHeb ="%D7%90+%D7%91+%D7%92+%D7%93+%D7%94+%D7%95+%D7%96+%D7%97+%D7%98+%D7%99+%D7%9A+%D7%9B+%D7%9C+%D7%9D+%D7%9E+%D7%9F+%D7%A0+%D7%A1+%D7%A2+%D7%A3+%D7%A4+%D7%A5+%D7%A6+%D7%A7+%D7%A8+%D7%A9+%D7%AA" UrlHeb ="%%D7%%90+%%D7%%91+%%D7%%92+%%D7%%93+%%D7%%94+%%D7%%95+%%D7%%96+%%D7%%97+%%D7%%98+%%D7%%99+%%D7%%9A+%%D7%%9B+%%D7%%9C+%%D7%%9D+%%D7%%9E+%%D7%%9F+%%D7%%A0+%%D7%%A1+%%D7%%A2+%%D7%%A3+%%D7%%A4+%%D7%%A5+%%D7%%A6+%%D7%%A7+%%D7%%A8+%%D7%%A9+%%D7%%AA" sSize = StrLen( QueryString ) UrlTranslated = "" HebCount=ItemCount( UrlHeb, "+" )+1 For u=1 to sSize cChar = StrSub( QueryString, u, 1 ) hPos = ItemLocate( cChar, Heb, " " ) If hPos!=0 UrlTranslated=StrCat(UrlTranslated, ItemExtract( HebCount-hPos, UrlHeb, "+" ) ) Else UrlTranslated=StrCat(UrlTranslated, cChar) EndIf Next Drop( Heb, UrlHeb, sSize, cChar, hPos ) Return UrlTranslated #EndSubroutine
Article ID: W15879
File Created: 2004:03:30:15:41:20
Last Updated: 2004:03:30:15:41:20