https://github.com/gregors/bad_encoding
Find bad encoding characters in large strings
https://github.com/gregors/bad_encoding
Last synced: 3 months 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-18T04:16:59.000Z (almost 5 years ago)
- Last Synced: 2025-03-12T20:04:23.430Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- 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