Unix and Linux Discussions Tagged with encoding |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
30 |
73,345 |
Programming |
|
|
|
4 |
78,472 |
Shell Programming and Scripting |
|
|
|
8 |
12,046 |
Shell Programming and Scripting |
|
|
|
3 |
1,935 |
Shell Programming and Scripting |
|
|
|
2 |
11,709 |
Solaris |
|
|
|
2 |
12,364 |
AIX |
|
|
|
1 |
31,787 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
8,711 |
Shell Programming and Scripting |
|
|
|
1 |
3,516 |
AIX |
|
|
|
3 |
2,358 |
Shell Programming and Scripting |
|
|
|
9 |
8,597 |
Shell Programming and Scripting |
|
|
|
1 |
29,836 |
AIX |
|
|
|
2 |
11,461 |
Shell Programming and Scripting |
|
|
|
5 |
12,602 |
Shell Programming and Scripting |
|
|
|
5 |
21,220 |
UNIX for Advanced & Expert Users |
|
|
|
8 |
52,647 |
Shell Programming and Scripting |
|
|
|
3 |
26,262 |
AIX |
|
|
|
5 |
4,616 |
AIX |
|
|
|
2 |
7,666 |
Shell Programming and Scripting |
|
|
|
1 |
17,164 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
66,791 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,201 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
4,467 |
Shell Programming and Scripting |
|
|
|
8 |
36,638 |
IP Networking |
|
|
|
2 |
10,260 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
65,407 |
UNIX for Dummies Questions & Answers |
MB_INTERNAL_ENCODING(3) 1 MB_INTERNAL_ENCODING(3)
mb_internal_encoding - Set/Get internal character encoding
SYNOPSIS
mixed mb_internal_encoding ([string $encoding = mb_internal_encoding()])
DESCRIPTION
Set/Get the internal character encoding
PARAMETERS
o $encoding
-$encoding is the character encoding name used for the HTTP input character encoding conversion, HTTP output character encoding
conversion, and the default character encoding for string functions defined by the mbstring module. You should notice that the
internal encoding is totally different from the one for multibyte regex.
RETURN VALUES
If $encoding is set, then Returns TRUE on success or FALSE on failure. In this case, the character encoding for multibyte regex is NOT
changed. If $encoding is omitted, then the current character encoding name is returned.
EXAMPLES
Example #1
mb_internal_encoding(3) example
<?php
/* Set internal character encoding to UTF-8 */
mb_internal_encoding("UTF-8");
/* Display current internal character encoding */
echo mb_internal_encoding();
?>
SEE ALSO
mb_http_input(3), mb_http_output(3), mb_detect_order(3), mb_regex_encoding(3).
PHP Documentation Group MB_INTERNAL_ENCODING(3)