User Tools

Site Tools


Sidebar



en:objects:app:runtime:set_script_as_unicode

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:

    <?php $xhe_host = "127.0.0.1:7013";
     
    //connect the object to control the emulator, if not already connected
    if(!isset($path))
       $path = "../../../Templates/xweb_human_emulator.php";
    require($path);
     
    //Start
    echo "<hr> <font color = blue> app->".basename(__FILE__)."</font> <hr>";
     
    //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 "<hr> <br>";
     
    //Quit
    $app->quit();
    ?>

    Python example:

     

    C# example:

     

    Java Script example:

     
  • en/objects/app/runtime/set_script_as_unicode.txt · Last modified: 2026/08/05 22:31 (external edit)