frozenway
V2EX  ›  问与答

请问这个是什么编码的字符,怎么把它解密?

  •  
  •   frozenway · Jul 3, 2021 · 2143 views
    This topic created in 1789 days ago, the information mentioned may be changed or developed.
    万州区
    

    html 表单提交过来的有些异常数据是这样的,怎么解密?

    5 replies    2021-07-03 22:11:41 +08:00
    wangkun025
        1
    wangkun025  
       Jul 3, 2021   ❤️ 1
    万州区

    URL Encode and Decode
    markgor
        2
    markgor  
       Jul 3, 2021   ❤️ 1
    万州区
    html 实体编码
    frozenway
        3
    frozenway  
    OP
       Jul 3, 2021
    @markgor @wangkun025
    php 怎么解密?
    ```
    <?php
    echo htmlspecialchars_decode('&#19975;&#24030;&#21306;', ENT_QUOTES);
    ```
    解密不了
    sycxyc
        4
    sycxyc  
       Jul 3, 2021   ❤️ 1
    @frozenway html_entity_decode
    keepeye
        5
    keepeye  
       Jul 3, 2021   ❤️ 1
    <?php
    echo html_entity_decode('&#19975;&#24030;&#21306;');
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3841 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 00:48 · PVG 08:48 · LAX 17:48 · JFK 20:48
    ♥ Do have faith in what you're doing.