日韩欧美人妻无码精品白浆,夜夜嗨AV免费入口,国产欧美官网在线看,高校回应聋哑女生因长相完美被质疑

LOGO OA教程 ERP教程 模切知識(shí)交流 PMS教程 CRM教程 開發(fā)文檔 其他文檔  
 
網(wǎng)站管理員

[點(diǎn)晴永久免費(fèi)OA].net版URLEncode、ASP版URLDecode,支持漢字編碼/解碼

admin
2022年5月5日 18:55 本文熱度 2762
ASP版URLDecode:
function URLDecode(strIn)
  URLDecode = ""
  Dim sl: sl = 1
  Dim tl: tl = 1
  Dim key: key = "%"
  Dim kl: kl = Len(key)

  sl = InStr(sl, strIn, key, 1)
  Do While sl>0
    If (tl=1 And sl<>1) Or tl<sl Then
URLDecode = URLDecode & Mid(strIn, tl, sl-tl)
    End If

    Dim hh, hi, hl
    Dim a
    select Case UCase(Mid(strIn, sl+kl, 1))
      Case "U":                  'Unicode URLEncode
      a = Mid(strIn, sl+kl+1, 4)
      URLDecode = URLDecode & ChrW("&H" & a)
      sl = sl + 6

      Case "E":                   'UTF-8 URLEncode
      hh = Mid(strIn, sl+kl, 2)
      a = Int("&H" & hh)          'ascii碼
      If Abs(a)<128 Then
        sl = sl + 3
        URLDecode = URLDecode & Chr(a)
      Else
        hi = Mid(strIn, sl+3+kl, 2)
        hl = Mid(strIn, sl+6+kl, 2)
        a = ("&H" & hh And &H0F) * 2 ^12 Or ("&H" & hi And &H3F) * 2 ^ 6 Or ("&H" & hl And &H3F)
        If a<0 Then a = a + 65536
        URLDecode = URLDecode & ChrW(a)
        sl = sl + 9
      End If
    Case Else:                      'Asc URLEncode
      hh = Mid(strIn, sl+kl, 2)   '高位
      a = Int("&H" & hh)          'ascii碼
      If Abs(a)<128 Then
      sl = sl + 3
      Else
      hi = Mid(strIn, sl+3+kl, 2) '低位
      a = Int("&H" & hh & hi)     '非ascii碼
      sl = sl + 6
      End If
      URLDecode = URLDecode & Chr(a)
    End select

    tl = sl
    sl = InStr(sl, strIn, key, 1)
  Loop

  URLDecode = URLDecode & Mid(strIn, tl)
End function

.net版URLEncode:
       //對(duì)網(wǎng)址進(jìn)行UrlEncode編碼,為確保中文不亂碼,接收后進(jìn)行URLDecode解碼
        public static string UrlEncode(string str)
        {
            StringBuilder sb = new StringBuilder();
            byte[] byStr = System.Text.Encoding.UTF8.GetBytes(str);
            for (int i = 0; i < byStr.Length; i++)
            {
                sb.Append(@"%" + Convert.ToString(byStr[i], 16));
            }
            return (sb.ToString());
        }

        //對(duì)網(wǎng)址進(jìn)行UrlEncode編碼,為確保中文不亂碼故意將%替換為了$,接收后先將$替換為%,然后再進(jìn)行URLDecode解碼
        public static string UrlEncode_change(string str)
        {
            StringBuilder sb = new StringBuilder();
            byte[] byStr = System.Text.Encoding.UTF8.GetBytes(str);
            for (int i = 0; i < byStr.Length; i++)
            {
                sb.Append(@"$" + Convert.ToString(byStr[i], 16));
            }
            return (sb.ToString());
        }

該文章在 2022/5/5 18:55:55 編輯過
關(guān)鍵字查詢
相關(guān)文章
正在查詢...
點(diǎn)晴ERP是一款針對(duì)中小制造業(yè)的專業(yè)生產(chǎn)管理軟件系統(tǒng),系統(tǒng)成熟度和易用性得到了國(guó)內(nèi)大量中小企業(yè)的青睞。
點(diǎn)晴PMS碼頭管理系統(tǒng)主要針對(duì)港口碼頭集裝箱與散貨日常運(yùn)作、調(diào)度、堆場(chǎng)、車隊(duì)、財(cái)務(wù)費(fèi)用、相關(guān)報(bào)表等業(yè)務(wù)管理,結(jié)合碼頭的業(yè)務(wù)特點(diǎn),圍繞調(diào)度、堆場(chǎng)作業(yè)而開發(fā)的。集技術(shù)的先進(jìn)性、管理的有效性于一體,是物流碼頭及其他港口類企業(yè)的高效ERP管理信息系統(tǒng)。
點(diǎn)晴WMS倉(cāng)儲(chǔ)管理系統(tǒng)提供了貨物產(chǎn)品管理,銷售管理,采購(gòu)管理,倉(cāng)儲(chǔ)管理,倉(cāng)庫(kù)管理,保質(zhì)期管理,貨位管理,庫(kù)位管理,生產(chǎn)管理,WMS管理系統(tǒng),標(biāo)簽打印,條形碼,二維碼管理,批號(hào)管理軟件。
點(diǎn)晴免費(fèi)OA是一款軟件和通用服務(wù)都免費(fèi),不限功能、不限時(shí)間、不限用戶的免費(fèi)OA協(xié)同辦公管理系統(tǒng)。
Copyright 2010-2025 ClickSun All Rights Reserved