Win32::MultiLanguage - Interface to IMultiLanguage I18N routines
use Win32::MultiLanguage; # @@
Win32::MultiLanguage is an experimental wrapper module for the Windows IMultiLanguage interfaces that comes with Internet Explorer version 4 and later. Mlang.dll implements routines for dealing with character encodings, code pages, and locales.
Default setting will be used.
Input stream consists of 7-bit data.
Input stream consists of 8-bit data.
Input stream consists of double-byte data.
Input stream is an HTML page.
Detects the code page of the given string $octets. An optional $flags parameter may be specified, a combination of MLDETECTCP constants as defined above, if not specified MLDETECTCP_NONE will be used as default. An optional $codepage can also be specified, if this value is set to zero, this API returns all possible encodings. Otherwise, it lists only those encodings related to this parameter. The default is zero.
MLDETECTCP
MLDETECTCP_NONE
It will return a reference to an array of hash references of which each represents a DetectEncodingInfo strucure with the following keys
DetectEncodingInfo
LangID => ..., # primary language identifier CodePage => ..., # detected Win32-defined code page DocPercent => ..., # Percentage in the detected language Confidence => ..., # degree to which the detected data is correct
See http://msdn.microsoft.com/workshop/misc/mlang/reference/structures/detectencodinginfo.asp for details.
http://msdn.microsoft.com/workshop/misc/mlang/mlang.asp
This is pre-alpha software.
Copyright (C) 2004 by Bjoern Hoehrmann <bjoern@hoehrmann>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.
To install Win32::MultiLanguage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::MultiLanguage
CPAN shell
perl -MCPAN -e shell install Win32::MultiLanguage
For more information on module installation, please visit the detailed CPAN module installation guide.