V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
zhouyin
V2EX  ›  问与答

utf8 汉字为什么能在 gbk 终端正确显示?

  •  
  •   zhouyin · Jan 18, 2025 · 1832 views
    This topic created in 464 days ago, the information mentioned may be changed or developed.
    看图
    https://imgur.la/image/v2ex.wOGOF

    问题内容无法提交
    2 replies    2025-01-18 14:29:05 +08:00
    AoEiuV020JP
        1
    AoEiuV020JP  
       Jan 18, 2025
    隔了一层,php 程序做了什么你又不知道,从读取脚本到打印上终端,这过程可能涉及一次到两次编码转换都很正常,
    你直接 type 把脚本打印出来的话编码不对就一定乱码,
    zhouyin
        2
    zhouyin  
    OP
       Jan 18, 2025
    @AoEiuV020JP
    是 win11 特性 刚测了 win8 php8.3.4 输出乱码
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   946 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:16 · PVG 05:16 · LAX 14:16 · JFK 17:16
    ♥ Do have faith in what you're doing.