Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

unaccent(1) [debian man page]

unaccent(1)						      General Commands Manual						       unaccent(1)

NAME
unaccent - remove accents from input stream or a string SYNOPSIS
unaccent [--debug_low] [--debug_high] [-h] charset [string] [expected] DESCRIPTION
With a single argument, unaccent reads data from stdin, replaces accented letters by their unaccented equivalent and writes the result on stdout. If the second argument ('string') is provided unaccent transforms it by replacing accented letters by their unaccented equivalent. The result is printed on the standard output. The charset of the input string or the data read from stdin is specified by the 'charset' argument (ISO-8859-15 for instance). The output is printed using the same charset. If the 'expected' argument is provided, the output string is compared to it. If they are not equal unaccent exits on error. unaccent relies on the iconv(3) library to convert from the specified charset to UTF-16BE (or UTF-16 if UTF-16BE is not available). You should check the manual pages for available charsets. On GNU/Linux the command iconv -l shows all available charsets. OPTIONS
--debug_low Prints human readable information about the unaccentuation process. See unac(3) for more information. --debug_high Prints very detailed information about the unaccentuation process. See unac(3) for more information. --help -h Prints a short usage and exits. EXAMPLES
Remove accents from the string ete and check that the result is ete. unaccent ISO-8859-1 ete ete Remove accents from file myfile and put the result in file myfile.unaccent unaccent ISO-8859-1 < myfile > myfile.unaccent SEE ALSO
unac(3), iconv(3) AUTHOR
Loic Dachary loic@senga.org http://www.senga.org/unac/ local unaccent(1)

Check Out this Related Man Page

ICONV_MIME_DECODE(3)							 1						      ICONV_MIME_DECODE(3)

iconv_mime_decode - Decodes a MIMEheader field

SYNOPSIS
string iconv_mime_decode (string $encoded_header, [int $mode], [string $charset = ini_get("iconv.internal_encoding")]) DESCRIPTION
Decodes a MIME header field. PARAMETERS
o $encoded_header - The encoded header, as a string. o $mode -$mode determines the behaviour in the event iconv_mime_decode(3) encounters a malformed MIME header field. You can specify any combination of the following bitmasks. Bitmasks acceptable to iconv_mime_decode(3) +------+--------------------------------------+---+ |Value | | | | | | | | | Constant | | | | | | | | Description | | | | | | +------+--------------------------------------+---+ | 1 | | | | | | | | | ICONV_MIME_DECODE_STRICT | | | | | | | | If set, the given header is decoded | | | | in full conformance with the stan- | | | | dards defined in RFC2047. This | | | | option is disabled by default | | | | because there are a lot of broken | | | | mail user agents that don't follow | | | | the specification and don't produce | | | | correct MIME headers. | | | | | | | 2 | | | | | | | | | ICONV_MIME_DECODE_CONTINUE_ON_ERROR | | | | | | | | If set, iconv_mime_decode_head- | | | | ers(3) attempts to ignore any gram- | | | | matical errors and continue to | | | | process a given header. | | | | | | +------+--------------------------------------+---+ o $charset - The optional $charset parameter specifies the character set to represent the result by. If omitted, iconv.internal_encoding will be used. RETURN VALUES
Returns a decoded MIME field on success, or FALSE if an error occurs during the decoding. EXAMPLES
Example #1 iconv_mime_decode(3) example <?php // This yields "Subject: Prufung Prufung" echo iconv_mime_decode("Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?=", 0, "ISO-8859-1"); ?> SEE ALSO
iconv_mime_decode_headers(3), mb_decode_mimeheader(3), imap_mime_header_decode(3), imap_base64(3), imap_qprint(3). PHP Documentation Group ICONV_MIME_DECODE(3)
Man Page