NAME
Win32::MultiLanguage - Interface to IMultiLanguage I18N routines
SYNOPSIS
use Win32::MultiLanguage;
# @@
DESCRIPTION
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.
CONSTANTS
MLDETECTCP
- MLDETECTCP_NONE = 0
-
Default setting will be used.
- MLDETECTCP_7BIT = 1
-
Input stream consists of 7-bit data.
- MLDETECTCP_8BIT = 2
-
Input stream consists of 8-bit data.
- MLDETECTCP_DBCS = 4
-
Input stream consists of double-byte data.
- MLDETECTCP_HTML = 8
-
Input stream is an HTML page.
ROUTINES
- DetectInputCodepage($octets [, $flags [, $codepage]])
-
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 specifiedMLDETECTCP_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.It will return a reference to an array of hash references of which each represents a
DetectEncodingInfo
strucure with the following keysLangID => ..., # 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.
SEE ALSO
WARNING
This is pre-alpha software.
AUTHOR AND COPYRIGHT
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.