[flexcoders] Re: String Encoding Issue Over AMF

2009-01-14 Thread valdhor
The problem is still PHP's problem with unicode characters.

You can see the trademark character problem in php.net's method listings.

About the only way to do it is to replace the TM character with the
HTML equivalent:

$text = "™Steve";
$text = str_replace("™", "™", $text);

And on the flex end set the htmlText property to the returned string.


--- In flexcoders@yahoogroups.com, "Daniel Freiman"  wrote:
>
> Either I'm missing something (which is highly possible) or that
information
> isn't addressing the problem.  Everything on the php side seems
fine.  And
> all the tests/functions applied to the string on the php side operate as
> expected.  It's not until the string is sent over AMF to Flex that I
have a
> problem.
> 
> On Wed, Jan 14, 2009 at 12:20 PM, valdhor wrote:
> 
> >   The problem is with PHP and how it handles multi-byte strings.
> >
> > A good overview can be found at
http://www.phpwact.org/php/i18n/charsets
> >
> > Hopefully PHP 6 will end all this grief.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Daniel
> > Freiman"  wrote:
> > >
> > > I'm transmitting Strings from php to Flex. The values are correct
> > before I
> > > send them to Flex (I've traced them), but Flex isn't
interpreting them
> > > properly (I get that square thing, or two incorrect characters).
> > I've tried
> > > various encoding/decoding schemes (urlencode, etc) but none of
them have
> > > worked. So far I've only tried alphanumeric characters and the
> > "trademark"
> > > and "registered" symbols. The "trademark" is the only one that isn't
> > > working.
> > > Anyone have any idea how to fix this?
> > >
> > > - Daniel Freiman
> > >
> >
> >  
> >
>




Re: [flexcoders] Re: String Encoding Issue Over AMF

2009-01-14 Thread Daniel Freiman
Yeah, that's what I'm using.  Maybe I'll check the non-release builds.

On Wed, Jan 14, 2009 at 4:16 PM, Randy Martin  wrote:

>Are you using the latest Zend framework? Adobe contributed AMF to Zend,
> and there's a Zend_AMF component in V1.7 of the framework. This might solve
> your problem.
>
>
>
> HTH,
>
> ~randy
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Wednesday, January 14, 2009 1:28 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Re: String Encoding Issue Over AMF
>
>
>
> I'm using Zend Framework.  I can't find an comparable method.
>
> On Wed, Jan 14, 2009 at 1:58 PM, aphexyuri  wrote:
>
> Have you played around with $gateway->setCharsetHandler() in gateway.php?
>
>
>
> --- In flexcoders@yahoogroups.com , "Daniel
> Freiman"  wrote:
> >
>
> > Either I'm missing something (which is highly possible) or that
> information
> > isn't addressing the problem. Everything on the php side seems
> fine. And
> > all the tests/functions applied to the string on the php side operate as
> > expected. It's not until the string is sent over AMF to Flex that I
> have a
> > problem.
> >
>
> > On Wed, Jan 14, 2009 at 12:20 PM, valdhor wrote:
>
>
> >
> > > The problem is with PHP and how it handles multi-byte strings.
> > >
> > > A good overview can be found at
> http://www.phpwact.org/php/i18n/charsets
> > >
> > > Hopefully PHP 6 will end all this grief.
> > >
> > >
>
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
>
>
> "Daniel
> > > Freiman"  wrote:
> > > >
> > > > I'm transmitting Strings from php to Flex. The values are correct
> > > before I
> > > > send them to Flex (I've traced them), but Flex isn't
> interpreting them
> > > > properly (I get that square thing, or two incorrect characters).
> > > I've tried
> > > > various encoding/decoding schemes (urlencode, etc) but none of
> them have
> > > > worked. So far I've only tried alphanumeric characters and the
> > > "trademark"
> > > > and "registered" symbols. The "trademark" is the only one that isn't
> > > > working.
> > > > Anyone have any idea how to fix this?
> > > >
> > > > - Daniel Freiman
> > > >
> > >
> > >
> > >
> >
>
>
>
>   
>


RE: [flexcoders] Re: String Encoding Issue Over AMF

2009-01-14 Thread Randy Martin
Are you using the latest Zend framework? Adobe contributed AMF to Zend, and
there's a Zend_AMF component in V1.7 of the framework. This might solve your
problem.

 

HTH, 

~randy

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Daniel Freiman
Sent: Wednesday, January 14, 2009 1:28 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: String Encoding Issue Over AMF

 

I'm using Zend Framework.  I can't find an comparable method.

On Wed, Jan 14, 2009 at 1:58 PM, aphexyuri  wrote:

Have you played around with $gateway->setCharsetHandler() in gateway.php?



--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ,
"Daniel Freiman"  wrote:
>

> Either I'm missing something (which is highly possible) or that
information
> isn't addressing the problem. Everything on the php side seems
fine. And
> all the tests/functions applied to the string on the php side operate as
> expected. It's not until the string is sent over AMF to Flex that I
have a
> problem.
> 

> On Wed, Jan 14, 2009 at 12:20 PM, valdhor wrote:


> 
> > The problem is with PHP and how it handles multi-byte strings.
> >
> > A good overview can be found at
http://www.phpwact.org/php/i18n/charsets
> >
> > Hopefully PHP 6 will end all this grief.
> >
> >

> > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
,


"Daniel
> > Freiman"  wrote:
> > >
> > > I'm transmitting Strings from php to Flex. The values are correct
> > before I
> > > send them to Flex (I've traced them), but Flex isn't
interpreting them
> > > properly (I get that square thing, or two incorrect characters).
> > I've tried
> > > various encoding/decoding schemes (urlencode, etc) but none of
them have
> > > worked. So far I've only tried alphanumeric characters and the
> > "trademark"
> > > and "registered" symbols. The "trademark" is the only one that isn't
> > > working.
> > > Anyone have any idea how to fix this?
> > >
> > > - Daniel Freiman
> > >
> >
> > 
> >
>

 

 



Re: [flexcoders] Re: String Encoding Issue Over AMF

2009-01-14 Thread Daniel Freiman
I'm using Zend Framework.  I can't find an comparable method.

On Wed, Jan 14, 2009 at 1:58 PM, aphexyuri  wrote:

>   Have you played around with $gateway->setCharsetHandler() in
> gateway.php?
>
>
> --- In flexcoders@yahoogroups.com , "Daniel
> Freiman"  wrote:
> >
> > Either I'm missing something (which is highly possible) or that
> information
> > isn't addressing the problem. Everything on the php side seems
> fine. And
> > all the tests/functions applied to the string on the php side operate as
> > expected. It's not until the string is sent over AMF to Flex that I
> have a
> > problem.
> >
> > On Wed, Jan 14, 2009 at 12:20 PM, valdhor wrote:
> >
> > > The problem is with PHP and how it handles multi-byte strings.
> > >
> > > A good overview can be found at
> http://www.phpwact.org/php/i18n/charsets
> > >
> > > Hopefully PHP 6 will end all this grief.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
> "Daniel
> > > Freiman"  wrote:
> > > >
> > > > I'm transmitting Strings from php to Flex. The values are correct
> > > before I
> > > > send them to Flex (I've traced them), but Flex isn't
> interpreting them
> > > > properly (I get that square thing, or two incorrect characters).
> > > I've tried
> > > > various encoding/decoding schemes (urlencode, etc) but none of
> them have
> > > > worked. So far I've only tried alphanumeric characters and the
> > > "trademark"
> > > > and "registered" symbols. The "trademark" is the only one that isn't
> > > > working.
> > > > Anyone have any idea how to fix this?
> > > >
> > > > - Daniel Freiman
> > > >
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Re: String Encoding Issue Over AMF

2009-01-14 Thread aphexyuri
Have you played around with $gateway->setCharsetHandler() in gateway.php?

--- In flexcoders@yahoogroups.com, "Daniel Freiman"  wrote:
>
> Either I'm missing something (which is highly possible) or that
information
> isn't addressing the problem.  Everything on the php side seems
fine.  And
> all the tests/functions applied to the string on the php side operate as
> expected.  It's not until the string is sent over AMF to Flex that I
have a
> problem.
> 
> On Wed, Jan 14, 2009 at 12:20 PM, valdhor wrote:
> 
> >   The problem is with PHP and how it handles multi-byte strings.
> >
> > A good overview can be found at
http://www.phpwact.org/php/i18n/charsets
> >
> > Hopefully PHP 6 will end all this grief.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Daniel
> > Freiman"  wrote:
> > >
> > > I'm transmitting Strings from php to Flex. The values are correct
> > before I
> > > send them to Flex (I've traced them), but Flex isn't
interpreting them
> > > properly (I get that square thing, or two incorrect characters).
> > I've tried
> > > various encoding/decoding schemes (urlencode, etc) but none of
them have
> > > worked. So far I've only tried alphanumeric characters and the
> > "trademark"
> > > and "registered" symbols. The "trademark" is the only one that isn't
> > > working.
> > > Anyone have any idea how to fix this?
> > >
> > > - Daniel Freiman
> > >
> >
> >  
> >
>




Re: [flexcoders] Re: String Encoding Issue Over AMF

2009-01-14 Thread Daniel Freiman
Either I'm missing something (which is highly possible) or that information
isn't addressing the problem.  Everything on the php side seems fine.  And
all the tests/functions applied to the string on the php side operate as
expected.  It's not until the string is sent over AMF to Flex that I have a
problem.

On Wed, Jan 14, 2009 at 12:20 PM, valdhor wrote:

>   The problem is with PHP and how it handles multi-byte strings.
>
> A good overview can be found at http://www.phpwact.org/php/i18n/charsets
>
> Hopefully PHP 6 will end all this grief.
>
>
> --- In flexcoders@yahoogroups.com , "Daniel
> Freiman"  wrote:
> >
> > I'm transmitting Strings from php to Flex. The values are correct
> before I
> > send them to Flex (I've traced them), but Flex isn't interpreting them
> > properly (I get that square thing, or two incorrect characters).
> I've tried
> > various encoding/decoding schemes (urlencode, etc) but none of them have
> > worked. So far I've only tried alphanumeric characters and the
> "trademark"
> > and "registered" symbols. The "trademark" is the only one that isn't
> > working.
> > Anyone have any idea how to fix this?
> >
> > - Daniel Freiman
> >
>
>  
>


[flexcoders] Re: String Encoding Issue Over AMF

2009-01-14 Thread valdhor
The problem is with PHP and how it handles multi-byte strings.

A good overview can be found at http://www.phpwact.org/php/i18n/charsets

Hopefully PHP 6 will end all this grief.


--- In flexcoders@yahoogroups.com, "Daniel Freiman"  wrote:
>
> I'm transmitting Strings from php to Flex.  The values are correct
before I
> send them to Flex (I've traced them), but Flex isn't interpreting them
> properly (I get that square thing, or two incorrect characters). 
I've tried
> various encoding/decoding schemes (urlencode, etc) but none of them have
> worked.  So far I've only tried alphanumeric characters and the
"trademark"
> and "registered" symbols.  The "trademark" is the only one that isn't
> working.
> Anyone have any idea how to fix this?
> 
> - Daniel Freiman
>