{"id":13513478,"url":"https://github.com/ruby/iconv","last_synced_at":"2025-04-05T07:07:53.490Z","repository":{"id":6943218,"uuid":"8194900","full_name":"ruby/iconv","owner":"ruby","description":"iconv wrapper","archived":false,"fork":false,"pushed_at":"2024-09-12T08:21:19.000Z","size":69,"stargazers_count":55,"open_issues_count":0,"forks_count":17,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-03-29T06:07:57.372Z","etag":null,"topics":["c","hacktoberfest","iconv","ruby"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-02-14T06:38:57.000Z","updated_at":"2025-03-11T14:03:29.000Z","dependencies_parsed_at":"2024-01-13T19:23:30.562Z","dependency_job_id":"bf0168ee-50d7-4e63-93d8-0971052440cc","html_url":"https://github.com/ruby/iconv","commit_stats":{"total_commits":49,"total_committers":11,"mean_commits":4.454545454545454,"dds":0.4693877551020408,"last_synced_commit":"abe34a08e81c5fb8cce0d7c0b3c972c4bc674ccf"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ficonv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ficonv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ficonv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Ficonv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/iconv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299833,"owners_count":20916190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","hacktoberfest","iconv","ruby"],"created_at":"2024-08-01T05:00:27.674Z","updated_at":"2025-04-05T07:07:53.447Z","avatar_url":"https://github.com/ruby.png","language":"C","readme":"# Iconv\n\n[![Build Status](https://travis-ci.org/ruby/iconv.svg)](https://travis-ci.org/ruby/iconv)\n\niconv wrapper, used to be ext/iconv\n\n## Abstract\n\nIconv is a wrapper class for the UNIX 95 \u003ccode\u003eiconv()\u003c/code\u003e function family,\nwhich translates string between various encoding systems.\n\nSee Open Group's on-line documents for more details.\n* \u003ccode\u003eiconv.h\u003c/code\u003e:       http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.h.html\n* \u003ccode\u003eiconv_open()\u003c/code\u003e:  http://www.opengroup.org/onlinepubs/007908799/xsh/iconv_open.html\n* \u003ccode\u003eiconv()\u003c/code\u003e:       http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.html\n* \u003ccode\u003eiconv_close()\u003c/code\u003e: http://www.opengroup.org/onlinepubs/007908799/xsh/iconv_close.html\n\nWhich coding systems are available is platform-dependent.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'iconv'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install iconv\n\n## Usage\n\n1. Simple conversion between two charsets.\n    ```ruby\n    converted_text = Iconv.conv('iso-8859-15', 'utf-8', text)\n    ```\n2. Instantiate a new `Iconv` and use method `Iconv#iconv`.\n    ```ruby\n     cd = Iconv.new(to, from)\n     begin\n       input.each { |s| output \u003c\u003c cd.iconv(s) }\n       output \u003c\u003c cd.iconv(nil)                   # Don't forget this!\n     ensure\n       cd.close\n     end\n    ```\n3. Invoke `Iconv.open` with a block.\n    ```ruby\n     Iconv.open(to, from) do |cd|\n       input.each { |s| output \u003c\u003c cd.iconv(s) }\n       output \u003c\u003c cd.iconv(nil)\n     end\n    ```\n4. Shorthand for (3).\n    ```ruby\n     Iconv.iconv(to, from, *input.to_a)\n    ```\n\n## Attentions\n\nEven if some extensions of implementation dependent are useful,\nDON'T USE those extensions in libraries and scripts to widely distribute.\nIf you want to use those feature, use `String#encode`.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## License\n\nRuby License/2-clause BSDL\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Ficonv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Ficonv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Ficonv/lists"}