Semidio
V2EX  ›  编程

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

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