【问题标题】:Reading gibberish filename (FTP/FSO)读取乱码文件名 (FTP/FSO)
【发布时间】:2014-08-21 13:50:05
【问题描述】:

查看我的服务器,我看到文件名,他们的字符被搞砸了。 示例:ôøùú-ô÷åãé-1.mp3

应该是希伯来字母。

虽然可以在浏览器和 FTP 中读取文件,但无法始终读取它们 - 例如,在在线音频播放器或 VBScript FSO(文件系统对象)中

有什么办法可以改变字符集或其他东西,以便我可以读取然后重命名这些文件?

谢谢!

【问题讨论】:

    标签: vbscript ftp filesystemobject fso


    【解决方案1】:

    已解决,使用此链接:http://pastebin.com/yXRWDggY

                function convertChar(letter)
    
                    lat = array("à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú", " " )
                    heb = array("א","ב","ג","ד","ה","ו","ז","ח","ט","י","ך","כ","ל","ם","מ","ן","נ","ס","ע","ף","פ","ץ","צ","ק","ר","ש","ת", " ")
    
                    inarray = false 
                    for ii = 0 to ubound(heb)
                        if letter = heb(ii) then
                            convertChar = lat(ii)
                            inarray = true 
                            exit for 
                        end if 
                    next 
    
                    if inarray = false then convertChar = letter 
    
                end function
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-03-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多