Project

is_it_utf8

0.0
No commit activity in last 3 years
No release in over 3 years
Fast UTF8 Validator
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

IsItUtf8

Travis Build

IsItUtf8 can check if a string contains 100% valid UTF8 - fast. The heavy lifting is done by fastvalidate-utf-8

However, consider simply using String#valid_encoding?. Ruby figures our encoding correctness when strings are instantiated.

Usage

require 'is_it_utf8'
puts IsItUtf8.valid?('xøxøxøx')
true

Requirements

  • Ruby 2.2+
  • gcc/clang

Developing

Simply make your changes and re-run the tests. Compilation is automatic.

rake test

License

MIT