set_script_as_unicode

set_script_as_unicode($is_unicode = true); - tells human to process the following commands from the script in Unicode encoding or in the default encoding (windows 1251) - available from version 7.0.2

The function accepts parameters as input:

  • $is_unicode – process commands from the script in Unicode encoding (true)

    After testing, the function returns the result of its work to the script :
  • true – successfully worked
  • false – operation failed

    PHP example: app->".basename(__FILE__)."
    "; //1 echo "1.Let's set the script processing as Unicode:"; echo $app->set_script_as_unicode(true).""; //2 echo " n2.Let's set the script processing as Windows-1251:"; echo $app->set_script_as_unicode(false).""; //end echo "

    "; //Quit $app->quit(); ?>
    Python example: C# example: Java Script example: