GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  UNICODE::CHECKUTF8 (3)

.ds Aq ’

NAME

Unicode::CheckUTF8 - checks if scalar is valid UTF-8

CONTENTS

SYNOPSIS



   use Unicode::CheckUTF8 qw(is_utf8);
   my $is_ok = is_utf8($scalar);



DESCRIPTION

This is an XS wrapper around some Unicode Consortium code to check if a string is valid UTF-8, revised to conform to what expat/Mozilla think is valid UTF-8, especially with regard to low-ASCII characters.

Note that this module has NOTHING to do with Perl’s internal UTF8 flag on scalars.

This module is for use when you’re getting input from users and want to make sure it’s valid UTF-8 before continuing.

HISTORY

This is some old code, dating back to before Perl 5.8 and before Unicode support in Perl. I wish I didn’t have to keep using this code, but I can’t find any other code on CPAN for UTF-8 checking that’s both sufficiently fast and more importantly, correct. So now there’s yet another way to do it.

BUGS

Hopefully not, but mail me if so!

AUTHOR

Brad Fitzpatrick <brad@danga.com>, based on Unicode Consortium code.

Artur Bergman, helping me kill old Inline code using his awesome knowledge of all things Perl and XS.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CHECKUTF8 (3) 2010-12-20

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.