Semidio
V2EX  ›  编程

有没有用Javascript实现将字符串A从GB2312编码转换至UTF-8的方法?

  •  
  •   Semidio · Feb 8, 2012 · 4790 views
    This topic created in 5212 days ago, the information mentioned may be changed or developed.
    有没有用Javascript实现将字符串A从GB2312编码转换至UTF-8的方法?

    1、原文字在字符串A中
    2、现在需要将其从GB2312编码转换至UTF-8之后再赋值给字符串A用来输出

    求一个实现的代码。
    1 replies    1970-01-01 08:00:00 +08:00
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4807 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 09:53 · PVG 17:53 · LAX 02:53 · JFK 05:53
    ♥ Do have faith in what you're doing.