Multibyte String functions

The CICS® TS Feature Pack for Dynamic Scripting V2.0 supports Multibyte String functions.

All PHP functions are described in detail in the PHP manual at php.net.

The following Multibyte String functions are supported:

mb_convert_encoding  1 
mb_decode_mimeheader
mb_detect_encoding
mb_detect_order
mb_encode_mimeheader
mb_ereg
mb_ereg_match
mb_ereg_replace
mb_internal_encoding
mb_language
mb_regex_encoding
mb_regex_set_options
mb_split
mb_stripos
mb_stristr
mb_strlen
mb_strpos
mb_strrchr
mb_strrichr
mb_strripos
mb_strrpos
mb_strstr
mb_strtolower
mb_strtoupper
mb_substitute_character
mb_substr
mb_substr_count

Notes relating to specific Multibyte String functions:
  •  1  mb_convert_encoding does not support an array or string that contains multiple encodings, or auto being passed as the from_encoding. A PHP warning is generated in these cases.
Notes relating to all Multibyte String functions:
  • The mb_ functions behave the same as MBString if you specify the correct encoding for character data and the character data is correct. The output might not be the same as MBString if the character data is not valid or if you do not specify the correct encoding. For example, mb_substr, if you pass in str and specify it is UTF-32 when it is ascii or utf-8, does not return the same result as documented on php.net.
  • This mbstring implementation uses the Java™ locale and does not use the PHP setlocale() function.
  • Regex supports only the i,m,p,s options in mb_regex_set_options and mb_ereg_replace calls. These options are not documented on php.net. A PHP warning is generated if one of the unsupported options is specified.
  • Any encoding that is not supported results in an appropriate PHP message:
    • This includes mbstring special encodings such as base64, html-entities, byte2*, byte4*, auto, and pass, which are not supported.
    • You also get a warning if an unsupported encoding is specified on a mbstring configuration option in your php.ini.
  • The default internal encoding is ISO-8859-1, whereas mbstring on php.net determines the internal encoding that is based on mbstring.language. The default of mbstring.language is neutral, which means internal encoding of ISO-8859-1.


supported_mbstring_functions.html | Timestamp icon Last updated: Sunday, 4 June 2017