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

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

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

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

      1. 如何在字符串中轉(zhuǎn)換 Word 智能引號(hào)和破折號(hào)?

        How do I convert Word smart quotes and em dashes in a string?(如何在字符串中轉(zhuǎn)換 Word 智能引號(hào)和破折號(hào)?)
        <legend id='fzeFO'><style id='fzeFO'><dir id='fzeFO'><q id='fzeFO'></q></dir></style></legend>
      2. <i id='fzeFO'><tr id='fzeFO'><dt id='fzeFO'><q id='fzeFO'><span id='fzeFO'><b id='fzeFO'><form id='fzeFO'><ins id='fzeFO'></ins><ul id='fzeFO'></ul><sub id='fzeFO'></sub></form><legend id='fzeFO'></legend><bdo id='fzeFO'><pre id='fzeFO'><center id='fzeFO'></center></pre></bdo></b><th id='fzeFO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='fzeFO'><tfoot id='fzeFO'></tfoot><dl id='fzeFO'><fieldset id='fzeFO'></fieldset></dl></div>

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

          <bdo id='fzeFO'></bdo><ul id='fzeFO'></ul>

                <tfoot id='fzeFO'></tfoot>
                  <tbody id='fzeFO'></tbody>
                  本文介紹了如何在字符串中轉(zhuǎn)換 Word 智能引號(hào)和破折號(hào)?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我有一個(gè)帶有 textarea 的表單.用戶輸入存儲(chǔ)在數(shù)據(jù)庫中的文本塊.

                  有時(shí),用戶會(huì)粘貼 Word 中包含智能引號(hào)或短劃線的文本.這些字符在數(shù)據(jù)庫中顯示為:–、–、–、–

                  我應(yīng)該在輸入字符串上調(diào)用什么函數(shù)來將智能引號(hào)轉(zhuǎn)換為常規(guī)引號(hào)并將短劃線轉(zhuǎn)換為常規(guī)短劃線?

                  我在 PHP 工作.

                  更新:感謝您到目前為止的所有精彩回復(fù).Joel 網(wǎng)站上關(guān)于編碼的頁面非常有用:http://www.joelonsoftware.com/articles/Unicode.html

                  關(guān)于我的環(huán)境的一些說明:

                  MySQL 數(shù)據(jù)庫使用 UTF-8 編碼.同樣,顯示內(nèi)容的 HTML 頁面通過顯式設(shè)置元內(nèi)容類型使用 UTF-8(更新:).

                  在這些頁面上,智能引號(hào)和短劃線顯示為帶問號(hào)的菱形.

                  解決方案:

                  再次感謝您的回復(fù).解決方案是雙重的:

                  1. 確保數(shù)據(jù)庫和 HTML文件被明確設(shè)置為使用UTF-8 編碼.
                  2. 使用 htmlspecialchars() 而不是htmlentities().

                  解決方案

                  這聽起來像是 Unicode 問題.Joel Spolsky 在這個(gè)主題上有一個(gè)很好的起點(diǎn):http://www.joelonsoftware.com/articles/Unicode.html

                  I have a form with a textarea. Users enter a block of text which is stored in a database.

                  Occasionally a user will paste text from Word containing smart quotes or emdashes. Those characters appear in the database as: a€", a€?, a€? ,a€

                  What function should I call on the input string to convert smart quotes to regular quotes and emdashes to regular dashes?

                  I am working in PHP.

                  Update: Thanks for all of the great responses so far. The page on Joel's site about encodings is very informative: http://www.joelonsoftware.com/articles/Unicode.html

                  Some notes on my environment:

                  The MySQL database is using UTF-8 encoding. Likewise, the HTML pages that display the content are using UTF-8 (Update:) by explicitly setting the meta content-type.

                  On those pages the smart quotes and emdashes appear as a diamond with question mark.

                  Solution:

                  Thanks again for the responses. The solution was twofold:

                  1. Make sure the database and HTML files were explicitly set to use UTF-8 encoding.
                  2. Use htmlspecialchars() instead of htmlentities().

                  解決方案

                  This sounds like a Unicode issue. Joel Spolsky has a good jumping off point on the topic: http://www.joelonsoftware.com/articles/Unicode.html

                  這篇關(guān)于如何在字符串中轉(zhuǎn)換 Word 智能引號(hào)和破折號(hào)?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(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() 是從整個(gè)服務(wù)器還是從同一用戶獲取記錄?)
                  PHP MySQLi doesn#39;t recognize login info(PHP MySQLi 無法識(shí)別登錄信息)
                  mysqli_select_db() expects exactly 2 parameters(mysqli_select_db() 需要 2 個(gè)參數(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的訪問被拒絕)
                    • <bdo id='ZSza3'></bdo><ul id='ZSza3'></ul>
                            <tbody id='ZSza3'></tbody>
                        1. <legend id='ZSza3'><style id='ZSza3'><dir id='ZSza3'><q id='ZSza3'></q></dir></style></legend>
                          <i id='ZSza3'><tr id='ZSza3'><dt id='ZSza3'><q id='ZSza3'><span id='ZSza3'><b id='ZSza3'><form id='ZSza3'><ins id='ZSza3'></ins><ul id='ZSza3'></ul><sub id='ZSza3'></sub></form><legend id='ZSza3'></legend><bdo id='ZSza3'><pre id='ZSza3'><center id='ZSza3'></center></pre></bdo></b><th id='ZSza3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ZSza3'><tfoot id='ZSza3'></tfoot><dl id='ZSza3'><fieldset id='ZSza3'></fieldset></dl></div>

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

                          • <tfoot id='ZSza3'></tfoot>

                            主站蜘蛛池模板: 亚洲夜射 | 国产精品久久 | 天天操天天干天天爽 | 国产免费a | 天天夜干 | 午夜国产一级 | 影音先锋中文字幕在线观看 | 中文字幕 在线观看 | 亚洲欧美一区二区三区国产精品 | 日韩在线视频一区 | 精品一区二区久久久久久久网精 | 欧美日韩在线播放 | 中文字幕 国产精品 | 91亚洲国产亚洲国产 | 人人人人干 | 在线观看国产wwwa级羞羞视频 | 国产亚洲久 | 久久精品久久综合 | 国产亚洲第一页 | 日韩精品免费看 | 国产成人精品a视频 | 精品一区二区三区中文字幕 | 粉嫩在线| 黄视频在线网站 | 婷婷激情综合 | 99久久婷婷国产综合精品电影 | 亚洲精品久久久久久一区二区 | 狠狠色综合久久婷婷 | 国产在线激情视频 | 狠狠色综合久久丁香婷婷 | 日韩在线小视频 | 欧美极品在线观看 | 成人在线视频免费观看 | 夜久久 | 欧美一区二区三区大片 | 日韩精品一区二区三区中文在线 | 天天视频成人 | 国产欧美精品一区二区三区 | 99精品欧美| 亚洲精品乱码久久久久久蜜桃91 | 日韩电影免费在线观看中文字幕 |