Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mb_encoding_aliases(3) [php man page]

MB_ENCODING_ALIASES(3)							 1						    MB_ENCODING_ALIASES(3)

mb_encoding_aliases - Get aliases of a known encoding type

SYNOPSIS
array mb_encoding_aliases (string $encoding) DESCRIPTION
Returns an array of aliases for a known $encoding type. PARAMETERS
o $encoding - The encoding type being checked, for aliases. RETURN VALUES
Returns a numerically indexed array of encoding aliases on success, or FALSE on failure ERRORS
/EXCEPTIONS Emits an E_WARNING level error if $encoding is unknown. EXAMPLES
Example #1 mb_encoding_aliases(3) example <?php $encoding = 'ASCII'; $known_encodings = mb_list_encodings(); if (in_array($encoding, $known_encodings)) { $aliases = mb_encoding_aliases($encoding); print_r($aliases); } else { echo "Unknown ($encoding) encoding. "; } ?> The above example will output something similar to: Array ( [0] => ANSI_X3.4-1968 [1] => iso-ir-6 [2] => ANSI_X3.4-1986 [3] => ISO_646.irv:1991 [4] => US-ASCII [5] => ISO646-US [6] => us [7] => IBM367 [8] => cp367 [9] => csASCII ) SEE ALSO
mb_list_encodings(3). PHP Documentation Group MB_ENCODING_ALIASES(3)

Check Out this Related Man Page

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)
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

aliases

Is there a way to view what aliases are running on a given session? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

2. Programming

retireving ip aliases

hi, i created some IP aliases, but the only way i can c the aliases is using ifconfgi.. is there any other system command i can use to access the aliased ip list? i tried gng to /proc/net/aliases.. but i don`t have aliases in /proc/net . Also.. is there ayway i can retireve it using... (2 Replies)
Discussion started by: caltiger
2 Replies

3. UNIX for Dummies Questions & Answers

File encoding in Unix

1. I have a shell script which creates a file using cat command. How can i find what encoding the file follows (e.g. UTF8, ANSI)? 2. I want to convert that file to PC-ANSI format. How can i achieve that? I am using HP-Unix. (6 Replies)
Discussion started by: ssmallya
6 Replies

4. Shell Programming and Scripting

etc aliases

Hello: i have several server with own etc aliases. right now i want to combine it all into a general etc aliases in a new freebsd server. cause it consist hundred thousand of record user inside how to make a shell script to combine it or configure it. all etc aliases record example: ... (0 Replies)
Discussion started by: peterLfs
0 Replies

5. Shell Programming and Scripting

get the file encoding

Hello! The system is AIX 5.3 Give please command or script to get the file encoding Thanks (2 Replies)
Discussion started by: vinment
2 Replies

6. AIX

get the file encoding

Hello! The system is AIX 5.3 Give please command or script to get the file encoding (1 Reply)
Discussion started by: vinment
1 Replies

7. Emergency UNIX and Linux Support

Newaliases Not Working

Hi guys. I have created aliases file for postfix, but when run 'newaliases' to create new aliases.db file it doesn't show any output and aliases.db does not create. I should mention that there is no initial aliases.db file. (2 Replies)
Discussion started by: majid.merkava
2 Replies

8. Shell Programming and Scripting

How to find the file encoding and updating the file encoding?

Hi, I am beginner to Unix. My requirement is to validate the encoding used in the incoming file(csv,txt).If it is encoded with UTF-8 format,then the file should remain as such otherwise i need to chnage the encoding to UTF-8. Please advice me how to proceed on this. (7 Replies)
Discussion started by: cnraja
7 Replies

9. UNIX for Dummies Questions & Answers

AIX and Linux difference (character set)

I'm having a problem regarding the encoding of my files in Linux and AIX. I have a file which can be viewed both in Linux and AIX (via NetApp mount). When I checked the encoding, they have difference. In Linux, the file is encoded as ISO-8859 text. (checked by using "file" command).... (1 Reply)
Discussion started by: Jin_
1 Replies

10. UNIX for Dummies Questions & Answers

Charsets and encoding details

Hello gurus, I would like to get deep into charset and encoding isse, also tried google it but no luck. Please see bellow My configuration $ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8"... (1 Reply)
Discussion started by: wakatana
1 Replies

11. Red Hat

/etc/aliases & Sendmail

I've recently migrated a Solaris 10 server, to Redhat. I've migrated all my crons & scripts and now I'm attempting to set all the aliases, to send to the appropriate accounts. I have a particular user defined in /etc/aliases, however, when a particular script is ran in cron, I do not receive any... (2 Replies)
Discussion started by: Nvizn
2 Replies

12. Shell Programming and Scripting

Question on email aliases

hi all,I have doubt in my unix. Whenever i send any emails from unix machine. The receipent is recieving with the name pepsi retail do you have idea where i the email aliases name is hardcoded in the unix settings. -----Original Message----- From: Pepsi Retail c6306393 Sent: Friday, July... (8 Replies)
Discussion started by: arun888
8 Replies