If you are using Windows, have you set the environment variable:

JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8

Alos, the latest nightly build may no longer require that option.

-Alex

On 7/17/19, 3:02 PM, "SmartSoft Ltda" <[email protected]> wrote:

    Hi friends, I have error when migrate flex to apache royale. The guide you
    use is:
    
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapache.github.io%2Froyale-docs%2Fcreate-an-application%2Fmigrate-an-existing-app%2Fmigrate-from-flex.html&amp;data=02%7C01%7Caharui%40adobe.com%7C61ccd44c75e04553654508d70b027c5c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636989977614197069&amp;sdata=MiQcq53MY5uRgmF0ti3U2Lx5YCVrPJfmPtcOZ5rduos%3D&amp;reserved=0
    .
    
    This my source code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application 
xmlns:fx="https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009&amp;data=02%7C01%7Caharui%40adobe.com%7C61ccd44c75e04553654508d70b027c5c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636989977614197069&amp;sdata=%2FzQb9fySLq3jRLxf7M9M66bnX2%2BtSReMSLV6Ykz0k98%3D&amp;reserved=0";
          xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    
      <fx:Script>
      <![CDATA[
       import mx.events.CloseEvent;
       import mx.rpc.events.*;
       import mx.controls.Alert;
       import mx.collections.ArrayCollection;
       import Clases.*;
       [Bindable]
       public var gatewayLocal:String = "
    http://localhost:8081/amfphp/gateway.php";;
       [Bindable]
       public var dpbotones:ArrayCollection = new ArrayCollection();
    
       private var token:Object;
       private var BOT_CODIGO:int = 0;
       private function nuevo():void
       {
        BOT_CODIGO = 0;
        bancos_vs.selectedChild = registro_cv;
    
       }
    
       public function guardar():void
       {
        var botonAlmacenar:BOTONES= new BOTONES();
         botonAlmacenar.BOT_CODIGO = BOT_CODIGO;
         botonAlmacenar.BOT_DESCRIPCION = boton_ti.text;
         token = BOTONES_RO.Guardar.send(botonAlmacenar,"1","empresa25");
       }
       private function ResultadoGuardar(event:ResultEvent):void
       {
        if(event.result == false)
        {
         Alert.show("no");
        }
        else
        {
         Alert.show("yes");
        }
       }
      ]]>
     </fx:Script>
     <fx:Declarations>
      <mx:RemoteObject id="BOTONES_RO" endpoint="{gatewayLocal}"
    destination="SERVIDOR" source="SIGNUM.DAO.BOTONES_DAO"
    showBusyCursor="true">
       <mx:method name="Guardar" result="ResultadoGuardar(event)"/>
      </mx:RemoteObject>
     </fx:Declarations>
    
     <mx:Panel width="100%" height="100%" layout="absolute" title="Opciones"
    horizontalAlign="center" verticalAlign="top" cornerRadius="4"
    horizontalCenter="0" verticalCenter="0">
      <s:HGroup width="100%" >
       <mx:Button label="Nuevo" id="nuevo_btn" width="38" height="38"
    click="nuevo()"/>
       <mx:Button label="Guardar" id="guardar_btn" width="38" height="38"
    click="guardar()"/>
       </s:HGroup>
      <mx:ViewStack x="0" y="57" id="bancos_vs" width="100%" height="100%">
       <mx:Canvas width="100%" height="100%" id="lista_cv">
        <mx:DataGrid id="bancos_dg" bottom="10" dataProvider="{dpbotones}"
    top="38" left="10" right="10" doubleClickEnabled="false">
         <mx:columns>
          <mx:DataGridColumn headerText="BOTON" width="100"
    dataField="BOT_DESCRIPCION"/>
         </mx:columns>
        </mx:DataGrid>
        <mx:Label x="10" y="12" text="Opciones:"/>
        <mx:TextInput y="10" id="busqueda_ti" right="306" left="79"/>
        <mx:Label y="12" right="10" textAlign="right" text="{dpbotones.length}"
    fontWeight="bold"/>
       </mx:Canvas>
       <mx:Canvas width="100%" height="100%" id="registro_cv">
        <mx:TextInput id="boton_ti" x="129" y="10"/>
        <mx:Label x="10" y="12" text="Nombre de opción:"/>
       </mx:Canvas>
      </mx:ViewStack>
     </mx:Panel>
    </s:Application>
    ***********************But, when making the change respective THE ERROR is
    out:
    **********************
    jul 17, 2019 10:43:20 AM com.google.javascript.jscomp.LoggerErrorManager
    println
    : SEVERE: ERROR - Cannot read file
    C:/Users/equipopc/Documents/uno/bin/js-debug/mx/core/Keyboard.js: Failed to
    read: C:\Users\equipopc\Documents\uno\bin\js-debug\mx\core\Keyboard.js, is
    this input UTF-8 encoded?
    :
    : jul 17, 2019 10:43:20 AM com.google.javascript.jscomp.LoggerErrorManager
    println
    : SEVERE: ERROR - Cannot read file
    C:/Users/equipopc/Documents/uno/bin/js-debug/uno.js: Failed to read:
    C:\Users\equipopc\Documents\uno\bin\js-debug\uno.js, is this input UTF-8
    encoded?
    :
    : jul 17, 2019 10:43:20 AM com.google.javascript.jscomp.LoggerErrorManager
    printSummary
    : WARNING: 2 error(s), 0 warning(s)
    : 78.257309144 seconds
    
    -- 
    *SmartSoft Ltda.*
    *Bolívar entre Independencia y Colón*
    *Pasaje - El Oro - Ecuador*
    *(07) 2 918-102*
    *0988613842*
    *[email protected]* <[email protected]>
    *tecnoinfoec.blogspot.com* 
<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Ftecnoinfoec.blogspot.com&amp;data=02%7C01%7Caharui%40adobe.com%7C61ccd44c75e04553654508d70b027c5c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636989977614197069&amp;sdata=R%2FVE%2B3FZLwSpUR3QokTbszrAIFdzLeB9KbcPER9UnG4%3D&amp;reserved=0>
    

Reply via email to