Semidio
V2EX  ›  编程

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

  •  
  •   Semidio · Feb 8, 2012 · 5034 views
    This topic created in 5314 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   ·   4233 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 00:05 · PVG 08:05 · LAX 17:05 · JFK 20:05
    ♥ Do have faith in what you're doing.