Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gregors/bad_encoding
- Owner: gregors
- License: mit
- Created: 2017-09-01T20:10:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-18T04:16:59.000Z (over 4 years ago)
- Last Synced: 2024-11-28T12:45:41.396Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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