{"id":17996735,"url":"https://github.com/cosmo/iso8859","last_synced_at":"2025-03-26T04:30:49.659Z","repository":{"id":63907237,"uuid":"75655248","full_name":"Cosmo/ISO8859","owner":"Cosmo","description":"🌍⏩📄 Convert ISO8859 1-16 Encoded Text to String in Swift. Supports iOS, tvOS, watchOS and macOS.","archived":false,"fork":false,"pushed_at":"2021-10-13T13:36:32.000Z","size":46,"stargazers_count":18,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T05:22:18.031Z","etag":null,"topics":["encoding","iso","iso8859","macos","swift","tvos","watchos"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cosmo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-05T18:40:42.000Z","updated_at":"2024-11-14T06:36:01.000Z","dependencies_parsed_at":"2022-11-28T22:48:59.712Z","dependency_job_id":null,"html_url":"https://github.com/Cosmo/ISO8859","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosmo%2FISO8859","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosmo%2FISO8859/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosmo%2FISO8859/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosmo%2FISO8859/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cosmo","download_url":"https://codeload.github.com/Cosmo/ISO8859/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245589151,"owners_count":20640233,"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":["encoding","iso","iso8859","macos","swift","tvos","watchos"],"created_at":"2024-10-29T21:15:42.474Z","updated_at":"2025-03-26T04:30:49.412Z","avatar_url":"https://github.com/Cosmo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ISO8859\n\n\u003cimg src=\"https://img.shields.io/badge/swift5-compatible-green.svg?style=flat\" alt=\"Swift 5.1 compatible\" /\u003e\n\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg?style=flat\" alt=\"License MIT\" /\u003e\n\nConvert ISO8859 1-16 Encoded Text to String in Swift.\n\n## Usage\n\n```swift\nlet encoding = ISO8859.part1\nlet string = String([...], iso8859Encoding: encoding)\n```\n\n[See Examples](#examples)\n\n## Supported Character Sets\n\n| Encoding | Name | Enum |\n| --- | --- | --- |\n| ISO8859-1 | Latin 1 Western European | `ISO8859.part1` |\n| ISO8859-2 | Latin 2 Central European | `ISO8859.part2` |\n| ISO8859-3 | Latin 3 South European | `ISO8859.part3` |\n| ISO8859-4 | Latin 4 North European | `ISO8859.part4` |\n| ISO8859-5 | Latin/Cyrillic | `ISO8859.part5` |\n| ISO8859-6 | Latin/Arabic | `ISO8859.part6` |\n| ISO8859-7 | Latin/Greek | `ISO8859.part7` |\n| ISO8859-8 | Latin/Hebrew | `ISO8859.part8` |\n| ISO8859-9 | Latin 5 Turkish | `ISO8859.part9` |\n| ISO8859-10 | Latin 6 Nordic | `ISO8859.part10` |\n| ISO8859-11 | Latin/Thai | `ISO8859.part11` |\n| ISO8859-13 | Latin 7 Baltic Rim | `ISO8859.part13` |\n| ISO8859-14 | Latin 8 Celtic | `ISO8859.part14` |\n| ISO8859-15 | Latin 9 | `ISO8859.part15` |\n| ISO8859-16 | Latin 10 South-Eastern European | `ISO8859.part16` |\n\n## Examples\n\n### File to Hebrew Text\n\n```swift\nif\n    let path = Bundle.main.path(forResource: \"Hebrew-Text\", ofType: \"txt\"),\n    let hebrewTextData = try? Data(contentsOf: URL(fileURLWithPath: path)),\n    let string = String(hebrewTextData, iso8859Encoding: ISO8859.part8)\n{\n    print(string)\n}\n```\n\n### Data to Turkish Text\n\n```swift\nlet turkishTextData = Data(bytes: [84, 252, 114, 107, 231, 101])\nif let string = String(turkishTextData, iso8859Encoding: ISO8859.part9) {\n    print(string) // Returns \"Türkçe\"\n}\n```\n\n### UInt8 Bytes-Array to Greek Text\n\n```swift\nlet greekTextbytes: [UInt8] = [0xE1, 0xE2, 0xE3, 0xE4]\nif let string = String(greekTextbytes, iso8859Encoding: ISO8859.part7) {\n    print(string) // Returns \"αβγδ\"\n}\n```\n\n## Installation\n\n### [Swift Package Manager](https://swift.org/package-manager)\n\nAdd `ISO8859` as a dependency in your `Package.swift` file:\n\n```swift\nimport PackageDescription\n\nlet package = Package(\n    dependencies: [\n        .package(url: \"https://github.com/Cosmo/ISO8859.git\", from: \"1.1.0\"),\n    ]\n)\n```\n\n### Manually\n\nJust drag the source files into your project.\n\n## Contact\n\n* Devran \"Cosmo\" Uenal\n* Twitter: [@maccosmo](http://twitter.com/maccosmo)\n* LinkedIn: [devranuenal](https://www.linkedin.com/in/devranuenal)\n\n## Other Projects\n\n* [BinaryKit](https://github.com/Cosmo/BinaryKit) — BinaryKit helps you to break down binary data into bits and bytes and easily access specific parts.\n* [Clippy](https://github.com/Cosmo/Clippy) — Clippy from Microsoft Office is back and runs on macOS! Written in Swift.\n* [GrammaticalNumber](https://github.com/Cosmo/GrammaticalNumber) — Turns singular words to the plural and vice-versa in Swift.\n* [HackMan](https://github.com/Cosmo/HackMan) — Stop writing boilerplate code yourself. Let hackman do it for you via the command line.\n* [SpriteMap](https://github.com/Cosmo/SpriteMap) — SpriteMap helps you to extract sprites out of a sprite map. Written in Swift.\n* [StringCase](https://github.com/Cosmo/StringCase) — Converts String to lowerCamelCase, UpperCamelCase and snake_case. Tested and written in Swift.\n* [TinyConsole](https://github.com/Cosmo/TinyConsole) — TinyConsole is a micro-console that can help you log and display information inside an iOS application, where having a connection to a development computer is not possible.\n\n## License\n\nISO8859 is released under the [MIT License](http://www.opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmo%2Fiso8859","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmo%2Fiso8859","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmo%2Fiso8859/lists"}