Query: mb_convert_variables
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MB_CONVERT_VARIABLES(3) 1 MB_CONVERT_VARIABLES(3) mb_convert_variables - Convert character code in variable(s)SYNOPSISstring mb_convert_variables (string $to_encoding, mixed $from_encoding, mixed &$vars, [mixed &$...])DESCRIPTIONConverts character encoding of variables $vars in encoding $from_encoding to encoding $to_encoding. mb_convert_variables(3) join strings in Array or Object to detect encoding, since encoding detection tends to fail for short strings. Therefore, it is impossible to mix encoding in single array or object.PARAMETERSo $to_encoding - The encoding that the string is being converted to. o $from_encoding -$from_encoding is specified as an array or comma separated string, it tries to detect encoding from $from-coding. When $from_encoding is omitted, detect_order is used. o $vars -$vars is the reference to the variable being converted. String, Array and Object are accepted. mb_convert_variables(3) assumes all parameters have the same encoding. o $... - Additional $vars.RETURN VALUESThe character encoding before conversion for success, or FALSE for failure.EXAMPLESExample #1 mb_convert_variables(3) example <?php /* Convert variables $post1, $post2 to internal encoding */ $interenc = mb_internal_encoding(); $inputenc = mb_convert_variables($interenc, "ASCII,UTF-8,SJIS-win", $post1, $post2); ?> PHP Documentation Group MB_CONVERT_VARIABLES(3)
Related Man Pages |
---|
piconv(1) - linux |
piconv(1) - debian |
piconv(1) - suse |
mb_internal_encoding(3) - php |
piconv5.12(1) - osx |
Similar Topics in the Unix Linux Community |
---|
how to use ed ? |
AIX and Linux difference (character set) |
getting vars from external files |
File enconding and conversion |
Perl Matching multiple variables |