Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gregors/bad_encoding

Find bad encoding characters in large strings
https://github.com/gregors/bad_encoding

Last synced: 25 days ago
JSON representation

Find bad encoding characters in large strings

Awesome Lists containing this project

README

        

# Bad Encoding

I was having trouble finding bad characters in large strings so I did this manually for like 20 mins. Forget that! Never again!

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'bad_encoding'
```

And then execute:

$ bundle

Or install it yourself as:

$ gem install bad_encoding

## Usage
require 'bad_encoding'

> good_string.show_bad_encoding
=> "no bad segments founds"

> bad_string.show_bad_encoding
=> "r. \xED\xA0\xBD\xED\xB9\x82 )\n\n \n\n \n