Semidio
V2EX  ›  编程

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

  •  
  •   Semidio · Feb 8, 2012 · 5031 views
    This topic created in 5313 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   ·   3206 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 11:55 · PVG 19:55 · LAX 04:55 · JFK 07:55
    ♥ Do have faith in what you're doing.