Registry / utility / ensure-encoding

ensure-encoding

JSON →
library0.2rbrubygemsunverified

Ensure the character encoding in Strings coming from untrusted sources.

gem install ensure-encoding
INSTALL
IMPORT
SIG · ENSURE-ENCODING
E
ensure-encoding
utilityrubyv0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EnsureEncoding
require 'ensure-encoding'

Sanitize string encoding to UTF-8

require 'ensure-encoding' clean = EnsureEncoding.ensure_encoding('UTF-8', some_dirty_string) puts clean.encoding
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ensure-encoding — gem install ensure-encoding · libregistry