שלח תשובה

זירת השאלות

205
צפיות
3
תשובות

שאלה קטנה – מנועי חיפוש

,‏ 3 באוקטובר, 2004

גוגל מתרגם את מחרוזת החיפוש לרצף תווים.

איך אני יכול לקחת את רצף התווים הזה ולראות את המילה האמיתית ? (פעולה הפוכה ?)

תגיות:

3 תשובות

  1. maxweb הגיב:

    תראה משהו


    SearchValue = Request.Form("SearchValue")
    SearchValue = replace(SearchValue,  "א" ,"%D7%90")
    SearchValue = replace(SearchValue,  "ב" ,"%D7%91")
    SearchValue = replace(SearchValue, "ג" ,"%D7%92")
    SearchValue = replace(SearchValue,  "ד" ,"%D7%93")
    SearchValue = replace(SearchValue,  "ה" ,"%D7%94")
    SearchValue = replace(SearchValue,  "ו" ,"%D7%95")
    SearchValue = replace(SearchValue,  "ז" ,"%D7%96")
    SearchValue = replace(SearchValue,  "ח" ,"%D7%97")
    SearchValue = replace(SearchValue,  "ט" ,"%D7%98")
    SearchValue = replace(SearchValue, "י" ,"%D7%99")
    SearchValue = replace(SearchValue,  "כ" ,"%D7%9B")
    SearchValue = replace(SearchValue,  "ך" ,"%D7%9A")
    SearchValue = replace(SearchValue,  "ל" ,"%D7%9C")
    SearchValue = replace(SearchValue,  "מ" ,"%D7%9E")
    SearchValue = replace(SearchValue,  "ם" ,"%D7%9D")
    SearchValue = replace(SearchValue,  "נ" ,"%D7%A0")
    SearchValue = replace(SearchValue,  "ן" ,"%D7%9F")
    SearchValue = replace(SearchValue,  "ס" ,"%D7%A1")
    SearchValue = replace(SearchValue,  "ע" ,"%D7%A2")
    SearchValue = replace(SearchValue,  "פ" ,"%D7%A4")
    SearchValue = replace(SearchValue,  "ף" ,"%D7%A3")
    SearchValue = replace(SearchValue,  "צ" ,"%D7%A6")
    SearchValue = replace(SearchValue,  "ץ" ,"%D7%A5")
    SearchValue = replace(SearchValue,  "ק" ,"%D7%A7")
    SearchValue = replace(SearchValue,  "ר" ,"%D7%A8")
    SearchValue = replace(SearchValue,  "ש" ,"%D7%A9")
    SearchValue = replace(SearchValue,  "ת" ,"%D7%AA")
    SearchValue = replace(SearchValue,  " " ,"+")
    SearchValue = replace(SearchValue, chr(34),"%22")
    SearchValue = replace(SearchValue, "’","%27")
    SearchValue = replace(SearchValue, "+","%2B")
    SearchValue = replace(SearchValue, ")","%28")
    SearchValue = replace(SearchValue, "(","%29")
    SearchValue = replace(SearchValue, "]","%5B")
    SearchValue = replace(SearchValue, "(","%5D")

  2. d_magal הגיב:

    תודה, למה אני לא רואה את השינוי ?
    אני רואה עדיין את המחרוזת הישנה.


    SearchValue = "%D7%A9%D7%9C%D7%98%D7%99%D7%9D+%D7%9C%D7%93%D7%9C%D7%AA%D7%95%D7%"
    SearchValue = replace(SearchValue,  "א" ,"%D7%90")
    SearchValue = replace(SearchValue,  "ב" ,"%D7%91")
    SearchValue = replace(SearchValue, "ג" ,"%D7%92")
    SearchValue = replace(SearchValue,  "ד" ,"%D7%93")
    SearchValue = replace(SearchValue,  "ה" ,"%D7%94")
    SearchValue = replace(SearchValue,  "ו" ,"%D7%95")
    SearchValue = replace(SearchValue,  "ז" ,"%D7%96")
    SearchValue = replace(SearchValue,  "ח" ,"%D7%97")
    SearchValue = replace(SearchValue,  "ט" ,"%D7%98")
    SearchValue = replace(SearchValue, "י" ,"%D7%99")
    SearchValue = replace(SearchValue,  "כ" ,"%D7%9B")
    SearchValue = replace(SearchValue,  "ך" ,"%D7%9A")
    SearchValue = replace(SearchValue,  "ל" ,"%D7%9C")
    SearchValue = replace(SearchValue,  "מ" ,"%D7%9E")
    SearchValue = replace(SearchValue,  "ם" ,"%D7%9D")
    SearchValue = replace(SearchValue,  "נ" ,"%D7%A0")
    SearchValue = replace(SearchValue,  "ן" ,"%D7%9F")
    SearchValue = replace(SearchValue,  "ס" ,"%D7%A1")
    SearchValue = replace(SearchValue,  "ע" ,"%D7%A2")
    SearchValue = replace(SearchValue,  "פ" ,"%D7%A4")
    SearchValue = replace(SearchValue,  "ף" ,"%D7%A3")
    SearchValue = replace(SearchValue,  "צ" ,"%D7%A6")
    SearchValue = replace(SearchValue,  "ץ" ,"%D7%A5")
    SearchValue = replace(SearchValue,  "ק" ,"%D7%A7")
    SearchValue = replace(SearchValue,  "ר" ,"%D7%A8")
    SearchValue = replace(SearchValue,  "ש" ,"%D7%A9")
    SearchValue = replace(SearchValue,  "ת" ,"%D7%AA")
    SearchValue = replace(SearchValue,  " " ,"+")
    SearchValue = replace(SearchValue, chr(34),"%22")
    SearchValue = replace(SearchValue, "’","%27")
    SearchValue = replace(SearchValue, "+","%2B")
    SearchValue = replace(SearchValue, ")","%28")
    SearchValue = replace(SearchValue, "(","%29")
    SearchValue = replace(SearchValue, "]","%5B")
    SearchValue = replace(SearchValue, "(","%5D")
    Response.Write SearchValue

  3. BuildHome הגיב:

    תשובה
    הפונקציה הפוכה.
    הנה קוד שעובד:
    <%
    SearchValue = "%D7%A9%D7%9C%D7%98%D7%99%D7%9D+%D7%9C%D7%93%D7%9C%D7%AA%D7%95%D7%AA"
    SearchValue = replace(SearchValue,"%D7%90", "א")
    SearchValue = replace(SearchValue,"%D7%91", "ב")
    SearchValue = replace(SearchValue,"%D7%92", "ג")
    SearchValue = replace(SearchValue,"%D7%93", "ד")
    SearchValue = replace(SearchValue,"%D7%94", "ה")
    SearchValue = replace(SearchValue,"%D7%95", "ו")
    SearchValue = replace(SearchValue,"%D7%96", "ז")
    SearchValue = replace(SearchValue,"%D7%97", "ח")
    SearchValue = replace(SearchValue,"%D7%98", "ט")
    SearchValue = replace(SearchValue,"%D7%99", "י")
    SearchValue = replace(SearchValue,"%D7%9B", "כ")
    SearchValue = replace(SearchValue,"%D7%9A", "ך")
    SearchValue = replace(SearchValue,"%D7%9C", "ל")
    SearchValue = replace(SearchValue,"%D7%9E", "מ")
    SearchValue = replace(SearchValue,"%D7%9D", "ם")
    SearchValue = replace(SearchValue,"%D7%A0", "נ")
    SearchValue = replace(SearchValue,"%D7%9F", "ן")
    SearchValue = replace(SearchValue,"%D7%A1", "ס")
    SearchValue = replace(SearchValue,"%D7%A2", "ע")
    SearchValue = replace(SearchValue,"%D7%A4", "פ")
    SearchValue = replace(SearchValue,"%D7%A3", "ף")
    SearchValue = replace(SearchValue,"%D7%A6", "צ")
    SearchValue = replace(SearchValue,"%D7%A5", "ץ")
    SearchValue = replace(SearchValue,"%D7%A7", "ק")
    SearchValue = replace(SearchValue,"%D7%A8", "ר")
    SearchValue = replace(SearchValue,"%D7%A9", "ש")
    SearchValue = replace(SearchValue,"%D7%AA", "ת")
    SearchValue = replace(SearchValue,"+", " ")
    SearchValue = replace(SearchValue,"%22", chr(34))
    SearchValue = replace(SearchValue,"%27", "’")
    SearchValue = replace(SearchValue,"%2B", "+")
    SearchValue = replace(SearchValue,"%28", ")")
    SearchValue = replace(SearchValue,"%29", "(")
    SearchValue = replace(SearchValue,"%5B", "]")
    SearchValue = replace(SearchValue,"%5D", "(")
    Response.Write SearchValue
    %>

    פלט:
    שלטים לדלתות

שלח תשובה

חדש! אחסון אתרים של וובמאסטר

שירות אחסון אתרים
המקצועי של וובמאסטר!

מומחים באירוח אתרי
WordPress, Joomla, Drupal

  • שרתי לינוקס עם CloudLinux, LiteSpeed
  • 1GB דיסק SSD, 10GB תעבורה חודשית
  • ממשק ניהול cPanel, תעודת SSL חינם

עכשיו במחיר היכרות:
רק 420 ש"ח לשנה!