[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 freima...@... wrote: I'm transmitting Strings from php to Flex.

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

[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 freima...@... 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

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 yuriv...@yahoo.co.uk wrote: Have you played around with $gateway-setCharsetHandler() in gateway.php? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman

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

2009-01-14 Thread Randy Martin
: 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 yuriv...@yahoo.co.uk wrote: Have you played around with $gateway

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

2009-01-14 Thread Daniel Freiman
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

[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(™, #x2122;, $text); And on the flex end