[IronPython] unicode problem with vmware api

Curt Hagenlocher curt at hagenlocher.org
Fri Sep 12 00:37:53 CEST 2008


C# also has only Unicode strings -- so if this works from C# then it's not
likely that Unicode is the problem.

On Thu, Sep 11, 2008 at 3:35 PM, jean-marc pouchoulon <
jeanmarc.pouchoulon at gmail.com> wrote:

> Helo ironpython list  ,
>
> I'm trying to use ironpython with the vi-toolkit api for .net
> The C# code looks like that:
>
> DiagnosticManager diagMgr = (DiagnosticManager)
> client.GetView(client.ServiceContent.DiagnosticManager, null);
> DiagnosticManagerLogHeader log = diagMgr.BrowseDiagnosticLog(null, "hostd",
> 999999999, null);
>
> I "translate" these lines  in ironpython code:
>
> diagMgr = client.GetView(client.ServiceContent.DiagnosticManager, None)
> diagMgrLog = diagMgr.BrowseDiagnosticLog(None, "hostd", 999999999, None)
>
> unfortunately I've got an error on hostd key:
>
> "A specified parameter was not correct. key"
>
> I read that ironpython has only unicode string and I suppose that  the
> problem is here.
> is there is a way to transform "hostd" in byte strings ?
>
>
> thanks for your help.
>
> jean-marc pouchoulon
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080911/8c3d3c14/attachment.html>


More information about the Ironpython-users mailing list