Skip to content

I wanted a c function that could analyze a byte stream to see if it was UTF-8 compliant. In the end I found it easier to write my own

Notifications You must be signed in to change notification settings

rw86347/UTF8Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

UTF8Analyzer

purpose

  • this function will simply return a yes or no in terms of a byte string is UTF-8 compliant. Now as you know ascii is also UTF-8 compliant. Thus this readme file should also pass. However if you have windows document it should fail the UTF-8 test. However it is possible (although unlikely) that a UTF-32 buffer could be comprised of only ASCII compatible bytes and thus pass. But then again that is very very unlikely.

I wrote this using "C" because it is the most portable language on earth. You can use in in C++, Java, Objective-C and of course "C".

I hope you enjoy use and improve.

This code is a BSD like copy write, except you don't need to give me credits to your app. In other words you can use as you see fit and do not need to give me credit ;-)

I only ask you leave my name in the header file.

Rodger Wilson

About

I wanted a c function that could analyze a byte stream to see if it was UTF-8 compliant. In the end I found it easier to write my own

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published