body-charset, post-charset. Getting the character set specified in incoming POST request [3.3.0]

$request:post-charset
$request:body-charset   [3.4.4]

If content-type HTTP header for incoming POST request contains character set information, this character set name will be available in this field.
During building form fields from such request the incoming data will be transcoded from this charset instead of charset specified in $response:charset.

Note: if character set which specified in content-type HTTP header for incoming POST request wasn't pluged in (at configuration method for example) you will receive an error message.




Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 06.01.2016