{"repo":"janlelis/unibits","free":true,"listed":false,"github":"https://github.com/janlelis/unibits","clone":"git clone https://github.com/janlelis/unibits.git","description":"Visualize different Unicode encodings in the terminal","language":"Ruby","stars":128,"topics":["unicode","ascii","codepoints","terminal","debugging-tool","utf-8","utf-16","utf-32","cli-command","ruby-cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"unibits Reveal the Unicode [![[version]](https://badge.fury.io/rb/unibits.svg)](https://badge.fury.io/rb/unibits) [![[ci]](https://github.com/janlelis/unibits/workflows/Test/badge.svg)](https://github.com/janlelis/unibits/actions?query=workflow%3ATest) Ruby library and CLI command that visualizes various Unicode and ASCII/single byte encodings in the terminal: - Makes analyzing encodings easier - Helps you with debugging strings - Highlights invalid/special/blank bytes/characters/codepoints - Supports UTF-8 , UTF-16LE / UTF-16BE , UTF-32LE / UTF-32BE , ISO-8859-X , Windows-125X , IBMX , CP85X , macX , TIS-620 / Windows-874 , KOI8-R / KOI8-U , 7-Bit ASCII / GB1988 , and arbitrary BINARY data Color Coding Each byte of the given string is highlighted using the following mechanism (characters - codepoints): - Red for invalid bytes - Light blue for blanks - Blue for control characters - Non-control formatting characters in pink - Green for marks (Unicode only) - Orange for unassigned codepoints - Lighter orange for unassigned codepoints which are also ignorable - Random color for all other codepoints The same colors are used in the higher-level companion tool uniscribe. Setup Make sure you have Ruby installed and installing gems works properly. Then do: Usage Pass the string to debug to unibits: From CLI From Ruby Advanced Options unibits takes some optional options: - encoding (e) : The encoding of the given string (uses the string's default encoding if none given) - convert (c) ","default_branch":null,"files":null,"tree":[],"storefront":"/r/janlelis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/janlelis/unibits/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}