Change language

PHP Iconv_get_encoding () function

Syntax:
mixed iconv_get_encoding ($type = "all")
Parameters: This function takes one parameter, $type . The value of the $type parameter:
  • all
  • input_encoding
  • output_encoding
  • internal_encoding
Return Value:This function returns the current value of the internal configuration variable on success or FALSE on error.The following program illustrates the iconv_get_encoding() function in PHP:Program :  
// Use the iconv_set_encoding() function
// with the encoding parameter iconv_set_encoding ( "input_encoding" , "UTF-8" ); iconv_set_encoding ( "internal_encoding" , "UTF-8" ); iconv_set_encoding ( "output_encoding" , "ISO-8859-1" ); var_dump (iconv_get_encoding ( ’all’ ));  
?>
Exit:
array (3 ) {["input_encoding"] = > string (5) "UTF-8" ["output_encoding"] = > string (10) "ISO-8859-1" ["internal_encoding"] = > string (5) "UTF-8"}
Link: https://www.php.net/manual/en/function.iconv-get-encoding.php

Shop

Learn programming in R: courses

$

Best Python online courses for 2022

$

Best laptop for Fortnite

$

Best laptop for Excel

$

Best laptop for Solidworks

$

Best laptop for Roblox

$

Best computer for crypto mining

$

Best laptop for Sims 4

$

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

12 answers

NUMPYNUMPY

How to convert Nonetype to int or string?

12 answers

NUMPYNUMPY

How to specify multiple return types using type-hints

12 answers

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

12 answers


Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method