Example code for iconv-lite

Open
#75 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, node.js
Domain
documentation

Research direction

No repository file or test is named. Start with the iconv-lite package link and the RSS URL in the issue, then prepare a simple example showing conversion from ISO-8859-1 to UTF-8; done means the example is clear and usable for the stated River5 use case.

Written by the indexing model from the issue text.

Description

I'm in need of some simple example code for iconv-lite.

The functionality

I have a string which contains the text from requesting this file.

https://www.presseportal.de/rss/dienststelle_110972.rss2

I want to use iconv-lite to convert it from its charset -- ISO-8859-1 to UTF-8.

Why?

I'm seeing if I can swap out iconv for iconv-lite, to avoid problems people are having installing River5 because it requires a package that must be compiled from C. iconv-lite is all Javascript.

I wish

It were totally API compatible with iconv. That would be a thrill to have something glide into place and "just work." Alas that is not the way of Node. :-(

Dominant language
HTML
Stars
134
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from scripting/Scripting-News

All issues in scripting/Scripting-News

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.