Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SPOPS::Tool::UTFConverUser Contributed Perl DocumentSPOPS::Tool::UTFConvert(3)

NAME
       SPOPS::Tool::UTFConvert -- Provide automatic UTF-8 conversion

SYNOPSIS
	# Only use this	in 5.6.0 and earlier versions of Perl!

	# In object configuration
	object => {
	   rules_from => [ 'SPOPS::Tool::UTFConvert' ],
	   utf_fields => [ 'field1', 'field2' ],
	},

WARNING
       This currently only works in 5.6.0 and earlier versions of Perl.	It
       will barf with a	syntax error on	later versions.

DESCRIPTION
       Provides	translation from/to unicode datasources	via UTF8. When an
       object is fetched we do a translation on	the fields specified in
       'utf_fields' of the object configuration, and before an object is saved
       we do a translation on those same fields.

METHODS
       ruleset_factory(	$class,	$ruleset )

       Installs	"post_fetch_action" and	"pre_save_action" rules	for the	given
       class.

       from_utf

       Installed as "post_fetch_action". Translates all	fields in the
       configuration key "utf_fields" from UTF.

       to_utf

       Installed as "pre_save_action". Translates all fields in	the
       configuration key "utf_fields" to UTF.

BUGS
       None known.

TO DO
       Nothing known.

SEE ALSO
       utf8

       perlunicode

COPYRIGHT
       Copyright (c) 2001-2004 Chris Winters. All rights reserved.

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

AUTHORS
       Chris Winters <chris@cwinters.com>

       Andreas Nolte <andreas.nolte@bertelsmann.de>

perl v5.32.1			  2004-06-02	    SPOPS::Tool::UTFConvert(3)

NAME | SYNOPSIS | WARNING | DESCRIPTION | METHODS | BUGS | TO DO | SEE ALSO | COPYRIGHT | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=SPOPS::Tool::UTFConvert&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help