Skip to content

Check if a given string is a valid utf-8 string.

Notifications You must be signed in to change notification settings

laxmanprabhu/is_utf8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is_utf8 is a program and a c library to check if a given string is a
valid utf-8 one.

To compile (The program and the lib) :
 $ make

To run :
 $ ./is_utf8 $'\xe9' && echo OK || echo KO

The lib and the program will return 0 (Success) if the sequence is a
valid utf-8 string. Else they will return the byte, starting from one,
where the error was encontred.

About

Check if a given string is a valid utf-8 string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 72.0%
  • Shell 24.1%
  • Makefile 3.9%