|
NAMEEncode::Alias - alias definitions to encodingsSYNOPSISuse Encode; use Encode::Alias; define_alias( newName => ENCODING); DESCRIPTIONAllows newName to be used as an alias for ENCODING. ENCODING may be either the name of an encoding or an encoding object (as described in Encode).Currently newName can be specified in the following ways:
Alias overloadingYou can override predefined aliases by simply applying define_alias(). The new alias is always evaluated first, and when neccessary, define_alias() flushes the internal cache to make the new definition available.# redirect SHIFT_JIS to MS/IBM Code Page 932, which is a # superset of SHIFT_JIS define_alias( qr/shift.*jis$/i => '"cp932"' ); define_alias( qr/sjis$/i => '"cp932"' ); If you want to zap all predefined aliases, you can use Encode::Alias->undef_aliases; to do so. And Encode::Alias->init_aliases; gets the factory settings back. SEE ALSOEncode, Encode::Supported
Visit the GSP FreeBSD Man Page Interface. |