久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<small id='oUAak'></small><noframes id='oUAak'>

    <i id='oUAak'><tr id='oUAak'><dt id='oUAak'><q id='oUAak'><span id='oUAak'><b id='oUAak'><form id='oUAak'><ins id='oUAak'></ins><ul id='oUAak'></ul><sub id='oUAak'></sub></form><legend id='oUAak'></legend><bdo id='oUAak'><pre id='oUAak'><center id='oUAak'></center></pre></bdo></b><th id='oUAak'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oUAak'><tfoot id='oUAak'></tfoot><dl id='oUAak'><fieldset id='oUAak'></fieldset></dl></div>
    <tfoot id='oUAak'></tfoot>
      <bdo id='oUAak'></bdo><ul id='oUAak'></ul>

      <legend id='oUAak'><style id='oUAak'><dir id='oUAak'><q id='oUAak'></q></dir></style></legend>

        如何在 PHP 中打開名稱中包含 unicode 字符的文件

        How to open file in PHP that has unicode characters in its name?(如何在 PHP 中打開名稱中包含 unicode 字符的文件?)
      1. <tfoot id='HPkSH'></tfoot>

          <bdo id='HPkSH'></bdo><ul id='HPkSH'></ul>
        • <i id='HPkSH'><tr id='HPkSH'><dt id='HPkSH'><q id='HPkSH'><span id='HPkSH'><b id='HPkSH'><form id='HPkSH'><ins id='HPkSH'></ins><ul id='HPkSH'></ul><sub id='HPkSH'></sub></form><legend id='HPkSH'></legend><bdo id='HPkSH'><pre id='HPkSH'><center id='HPkSH'></center></pre></bdo></b><th id='HPkSH'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='HPkSH'><tfoot id='HPkSH'></tfoot><dl id='HPkSH'><fieldset id='HPkSH'></fieldset></dl></div>
              <tbody id='HPkSH'></tbody>

                1. <small id='HPkSH'></small><noframes id='HPkSH'>

                  <legend id='HPkSH'><style id='HPkSH'><dir id='HPkSH'><q id='HPkSH'></q></dir></style></legend>
                  本文介紹了如何在 PHP 中打開名稱中包含 unicode 字符的文件?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  例如,我有一個這樣的文件名 - проба.xml,但我無法從 PHP 腳本打開它.

                  For example I have a filename like this - проба.xml and I am unable to open it from PHP script.

                  如果我將 php 腳本設(shè)置為 utf-8,那么腳本中的所有文本都是 utf-8,因此當(dāng)我將其傳遞給 file_get_contents 時:

                  If I setup php script to be in utf-8 than all the text in script is utf-8 thus when I pass this to file_get_contents:

                  $fname = "проба.xml";
                  file_get_contents($fname);
                  

                  我收到文件不存在的錯誤.這樣做的原因是在 Windows (XP) 中,所有帶有非拉丁字符的文件名都是 unicode (UTF-16).好的,所以我試過這個:

                  I get error that file does not exist. The reason for this is that in Windows (XP) all file names with non-latin characters are unicode (UTF-16). OK so I tried this:

                  $fname = "проба.xml";
                  $res = mb_convert_encoding($fname,'UTF-8','UTF-16');
                  file_get_contents($res);
                  

                  但是由于 file_get_contents 不能接受 unicode 字符串,所以錯誤仍然存??在...

                  But the error persists since file_get_contents can not accept unicode strings...

                  有什么建議嗎?

                  推薦答案

                  這些是目前的結(jié)論:

                  1. PHP 5 無法打開帶有 unicode 字符的文件名,除非源文件名是 unicode.
                  2. PHP 5(至少在 Windows XP 上)無法處理 unicode 中的 PHP 源代碼.

                  因此得出的結(jié)論是這在 PHP 5 中是不可行的.

                  Thus the conclusion this not doable in PHP 5.

                  這篇關(guān)于如何在 PHP 中打開名稱中包含 unicode 字符的文件?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  MySQLi prepared statement amp; foreach loop(MySQLi準(zhǔn)備好的語句amp;foreach 循環(huán))
                  Is mysqli_insert_id() gets record from whole server or from same user?(mysqli_insert_id() 是從整個服務(wù)器還是從同一用戶獲取記錄?)
                  PHP MySQLi doesn#39;t recognize login info(PHP MySQLi 無法識別登錄信息)
                  mysqli_select_db() expects exactly 2 parameters(mysqli_select_db() 需要 2 個參數(shù))
                  Php mysql pdo query: fill up variable with query result(Php mysql pdo 查詢:用查詢結(jié)果填充變量)
                  MySQLI 28000/1045 Access denied for user #39;root#39;@#39;localhost#39;(MySQLI 28000/1045 用戶“root@“l(fā)ocalhost的訪問被拒絕)
                  <tfoot id='YTVsa'></tfoot>

                    <small id='YTVsa'></small><noframes id='YTVsa'>

                      <bdo id='YTVsa'></bdo><ul id='YTVsa'></ul>
                        <tbody id='YTVsa'></tbody>

                        1. <i id='YTVsa'><tr id='YTVsa'><dt id='YTVsa'><q id='YTVsa'><span id='YTVsa'><b id='YTVsa'><form id='YTVsa'><ins id='YTVsa'></ins><ul id='YTVsa'></ul><sub id='YTVsa'></sub></form><legend id='YTVsa'></legend><bdo id='YTVsa'><pre id='YTVsa'><center id='YTVsa'></center></pre></bdo></b><th id='YTVsa'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='YTVsa'><tfoot id='YTVsa'></tfoot><dl id='YTVsa'><fieldset id='YTVsa'></fieldset></dl></div>
                          <legend id='YTVsa'><style id='YTVsa'><dir id='YTVsa'><q id='YTVsa'></q></dir></style></legend>

                            主站蜘蛛池模板: 精品区| 亚洲综合国产精品 | 色精品 | 一区二区三区av | 欧美伊人久久久久久久久影院 | 精品无码久久久久国产 | 久久久女女女女999久久 | 一级免费看 | 亚洲91精品 | 在线亚洲免费视频 | 在线视频一区二区三区 | 欧美一区二区三区在线播放 | 亚洲毛片在线观看 | 久久草视频 | 操操日| 欧美高清一级片 | 国产精品久久久久久久久污网站 | 99精品福利视频 | 成人精品一区二区三区中文字幕 | 亚洲精品亚洲人成人网 | 国产色99精品9i | 人成精品 | 久久国产成人午夜av影院武则天 | www四虎影视 | 国产精品免费在线 | 欧美综合自拍 | 看a级黄色毛片 | 国产99久久精品一区二区永久免费 | cao在线 | 日本午夜精品 | 欧美精品一区在线发布 | 久久成人国产精品 | 国产欧美日韩久久久 | 精品国产一区二区三区性色av | 成人免费视频一区 | 992tv人人草| 亚洲男人的天堂网站 | 久久噜| 亚洲精品一区在线观看 | 成人在线看片 | 五月综合激情婷婷 |