How to transfer unicode strings

View: New views
2 Messages — Rating Filter:   Alert me  

How to transfer unicode strings

by vitaly-18 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
is it possible and how(may be an example), to transfer the unicode  
string using pyAMF?

Regards.

_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users

Re: How to transfer unicode strings

by Nick Joyce :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

PyAMF fully supports unicode.

An example:

 >>> from pyamf.remoting.client import RemotingService
 >>> gw = RemotingService('http://demo.pyamf.org/gateway/echo')
 >>> service = gw.getService('echo')
 >>> payload = u'\u0153\u2211\xae'
 >>> service(payload)
u'\u0153\u2211\xae'

This example is live, so feel free to experiment.

Cheers,

Nick


On 28 Jul 2009, at 20:14, vitaly@... wrote:

> Hi,
> is it possible and how(may be an example), to transfer the unicode  
> string using pyAMF?
>
> Regards.
>
> _______________________________________________
> PyAMF users mailing list - users@...
> http://lists.pyamf.org/mailman/listinfo/users

_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users