Your Japanese OpenLaszlo web site is a really great resource!

 If you have any other
issues please post a note to this mailing list.  It is only in the last few
years
that UTF8 applications have begun to work reliably on the many different
client and server systems, and I like to make sure that OpenLaszlo
applications
work well in the Japanese language.







On Wed, Dec 9, 2009 at 8:50 PM, ason <[email protected]> wrote:

> Thank you for your suggestion.
> My trouble was just a cross-domain issue.
> I still tried the app(proxied="false") on the dev console.
> When I deploy DHTML-SOLO files into the web server, DHTML app works
> correctly.
>
> header('Content-type: application/xml; charset=utf-8');
> is needed for php actually.
> If this does not exist, the dhtml app does not display the return from php.
>
> There is no problem now.
>
> RESOLVED!
>
> --
> [email protected]
> Laszlo Japan
>
>
> 2009/12/10 Henry Minsky <[email protected]>:
> > Are you sure? The ondata will only fire in DHTML if the server provides
> the
> > correct content type, e.g., 'application/xml'.
> >
> > Also there is a cross-domain issue in DHTML, your php script must come
> from
> > the same host address as your app was loaded from.
> >
> > I am enclosing copies of your test application, which work for me when
> > deployed in solo mode, in
> > Firefox 3.5 on OSX, on the runtimes [swf8, swf10, dhtml]
> >
> > If these do not work for you, can you tell me which browser and OS and
> > server you're using?
> >
> >
> >
> >
> > On Wed, Dec 9, 2009 at 8:08 PM, ason <[email protected]> wrote:
> >>
> >> Nothing happens.
> >>
> >> ondata event is not fired to begin with.
> >> This may be not the issue on Japanese characters.
> >>
> >> --
> >> [email protected]
> >> Laszlo Japan
> >>
> >> 2009/12/10 Henry Minsky <[email protected]>:
> >> > For DHTML, can you make sure that your PHP server sends the correct
> MIME
> >> > type, it must be application/xml
> >> >
> >> > <?php
> >> > header("Content-Type: application/xml");
> >> > $sei = urldecode($_GET["sei"]);
> >> > $mei = urldecode($_GET["mei"]);
> >> > print "<data sei='".$sei."' mei='".$mei."'/>";
> >> > ?>
> >> >
> >> >
> >> > That will make it work in SOLO DHTML mode.
> >> >
> >> >
> >> >
> >> > On Wed, Dec 9, 2009 at 11:31 AM, ason <[email protected]>
> wrote:
> >> >>
> >> >> > Results for swf9/10 version app:
> >> >> >
> >> >> > dhtml---NG(!)
> >> >>
> >> >> Sorry. This was not a correct result.
> >> >> even dataset ondata was not fired when proxied="false".
> >> >> (I always use SOLO.)
> >> >>
> >> >> When proxied="true", the app works very fine in dhtml.
> >> >> The 3rd param of  p.addValue() is a key setting.
> >> >>
> >> >> p.addValue("sei", sei.getText(), false);----OK.
> >> >> - or -
> >> >> p.addValue("sei", sei.getText(), true);-----NG
> >> >>
> >> >> php file is not needed to edit.
> >> >>
> >> >> --
> >> >> [email protected]
> >> >> Laszlo Japan
> >> >>
> >> >> > swf8---NG (but no problem)
> >> >> > swf9---OK
> >> >> > swf10---OK
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > [email protected]
> >> >> > Laszlo Japan
> >> >> > http://www.openlaszlo-ason.com/
> >> >> > http://laszlo.jp
> >> >> >
> >> >> >
> >> >> >
> >> >> > 2009/12/10 Henry Minsky <[email protected]>:
> >> >> >> Thanks very much!
> >> >> >>
> >> >> >> I am just setting up PHP on my MacBook, so I can test the php
> >> >> >> applications.
> >> >> >>
> >> >> >> If you would be so kind, could you try your application in DHTML
> and
> >> >> >> tell me
> >> >> >> what happens to the Japanese characters when they make the round
> >> >> >> trip
> >> >> >> from
> >> >> >> the client to the server and back?
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> On Wed, Dec 9, 2009 at 10:34 AM, ason <[email protected]>
> >> >> >> wrote:
> >> >> >>>
> >> >> >>> Hello Henry,
> >> >> >>>
> >> >> >>> if you need to test swf8/9/10/dhtml apps with Japanese
> characters,
> >> >> >>> tell me anytime.
> >> >> >>> I will do it.  Because I am Japanese.
> >> >> >>>
> >> >> >>> --
> >> >> >>> [email protected]
> >> >> >>> Laszlo Japan
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>> 2009/12/9 Henry Minsky <[email protected]>:
> >> >> >>> > Thank you for finding this workaround, Ason,
> >> >> >>> >
> >> >> >>> > I think we should figure out why there is difference in the
> swf8
> >> >> >>> > and
> >> >> >>> > swf10
> >> >> >>> > behavior. It would be
> >> >> >>> > best if the API were the same for both.  Also we should see
> what
> >> >> >>> > the
> >> >> >>> > behavior is in DHTML.
> >> >> >>> >
> >> >> >>> >
> >> >> >>> > I will look at how the text data is being encoded in the query.
> I
> >> >> >>> > have
> >> >> >>> > filed
> >> >> >>> > a bug in JIRA for this
> >> >> >>> > http://openlaszlo.org/jira/browse/LPP-8664
> >> >> >>> >
> >> >> >>> >
> >> >> >>> >
> >> >> >>> > On Wed, Dec 9, 2009 at 3:25 AM, ason <[email protected]
> >
> >> >> >>> > wrote:
> >> >> >>> >>
> >> >> >>> >> you must use encodeURI() in LZX, and urldecode() in PHP, in
> >> >> >>> >> as3(swf9/swf10),
> >> >> >>> >>
> >> >> >>> >> you can see the sample app in the "swf9 version" section of
> >> >> >>> >> http://www.openlaszlo-ason.com/doku.php/phpgetpost
> >> >> >>> >>
> >> >> >>> >>
> >> >> >>> >> --
> >> >> >>> >> [email protected]
> >> >> >>> >> Laszlo Japan
> >> >> >>> >>
> >> >> >>> >>
> >> >> >>> >> 2009/12/9 Ono Keiji <[email protected]>:
> >> >> >>> >> > Hi,
> >> >> >>> >> >
> >> >> >>> >> > I have just get big issue that 'POST" and "GET" dose not
> work
> >> >> >>> >> > well in
> >> >> >>> >> > the
> >> >> >>> >> > case of compiling with swf9/10. It get occur using multibyte
> >> >> >>> >> > text
> >> >> >>> >> > data
> >> >> >>> >> > to
> >> >> >>> >> > send using those interface.
> >> >> >>> >> > I wonder i miss any information about the attention when
> using
> >> >> >>> >> > swf9
> >> >> >>> >> > over.
> >> >> >>> >> > Any workaround?
> >> >> >>> >> >
> >> >> >>> >> > simple test case
> >> >> >>> >> > test.lzx
> >> >> >>> >> > <?xml version="1.0" encoding="utf-8"?>
> >> >> >>> >> > <canvas debug="true">
> >> >> >>> >> >   <dataset name="d" src="http://<server>/test.php"
> >> >> >>> >> > querystring="post">
> >> >> >>> >> >
> >> >> >>> >> >   <simplelayout/>
> >> >> >>> >> >   <edittext name="ed"></edittext>
> >> >> >>> >> >   <button>post
> >> >> >>> >> >      <handler name="onclick">
> >> >> >>> >> >        var dp = canvas.datasets.d;
> >> >> >>> >> >        dp.setQueryString({aaa: ed.getText()} );
> >> >> >>> >> >        dp.doRequest();
> >> >> >>> >> >      </handler>
> >> >> >>> >> >   </button>
> >> >> >>> >> > </canvas>
> >> >> >>> >> >
> >> >> >>> >> > test.php
> >> >> >>> >> > <?php
> >> >> >>> >> > $s = $_POST['aaa'];
> >> >> >>> >> > //$s = $_GET['aaa'];
> >> >> >>> >> >
> >> >> >>> >> > error_log( "$s\n", 3, "/tmp/php_error.log" );
> >> >> >>> >> > ?>
> >> >> >>> >> >
> >> >> >>> >> > When input "ああああ”(this is jp, and the mean is 'AHAHAHAHA'
> :^)
> >> >> >>> >> > The php program get "ã ‚ã ‚ã ‚".
> >> >> >>> >> >
> >> >> >>> >> > When it compile with swf8, works fine.
> >> >> >>> >> >
> >> >> >>> >> > thx
> >> >> >>> >> >
> >> >> >>> >> >
> >> >> >>> >> > --
> >> >> >>> >> > ------------------------------------------
> >> >> >>> >> > Ono Keiji
> >> >> >>> >> > [email protected]
> >> >> >>> >> > ------------------------------------------
> >> >> >>> >> >
> >> >> >>> >> >
> >> >> >>> >> >
> >> >> >>> >>
> >> >> >>> >
> >> >> >>> >
> >> >> >>> >
> >> >> >>> > --
> >> >> >>> > Henry Minsky
> >> >> >>> > Software Architect
> >> >> >>> > [email protected]
> >> >> >>> >
> >> >> >>> >
> >> >> >>> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> Henry Minsky
> >> >> >> Software Architect
> >> >> >> [email protected]
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Henry Minsky
> >> > Software Architect
> >> > [email protected]
> >> >
> >> >
> >> >
> >
> >
> >
> > --
> > Henry Minsky
> > Software Architect
> > [email protected]
> >
> >
> >
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to