Coder Social home page Coder Social logo

Browser support about iconv-lite HOT 3 CLOSED

ashtuchkin avatar ashtuchkin commented on May 29, 2024
Browser support

from iconv-lite.

Comments (3)

ashtuchkin avatar ashtuchkin commented on May 29, 2024

We've been discussing it in #20. Browser support will require significant code refactor (f.ex. to make it possible to skip huge CJK tables), so I've no plans in nearest future to add this.

You can make a fork, of course, but I think for now its easier just to use http://code.google.com/p/stringencoding/

from iconv-lite.

 avatar commented on May 29, 2024

I've read #20 and http://code.google.com/p/stringencoding/

And I find two important things:

  1. The API is different. You're using iconv.decode(BufferOrString, encoding), while they use TextEncoder(encoding).encode(XX); Which means we might need use at least a wrapper to support both browser and Node.
  2. They don't support Node.js buffer (Of course).

So I've already fork your project, and I think I will give a browser friendly version soon.

from iconv-lite.

 avatar commented on May 29, 2024

E.m. I found too many Node only features. I gave up.

from iconv-lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.