.NET Components for Mobility

OBEX Parser

Last post 08-21-2007 3:58 PM by PeterFoot. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-24-2007 10:17 AM

    OBEX Parser

    Hi,

    I have been playing with this lib for a while and it relly works for me, I added some functionality like senders name, and possibility to get filename, mac and file size right after first put packet, and wrote functions Deny() and Allow() to control the response. My problem si that when I send a file called e.g. "Země.thm" obex parser throws an exception:

    WebHeaderCollection.Add()    msg: Specified value has invalid Control characters.\r\nParameter name: value

    The character "ě" does that, and there are more in czech lang. "Příliš žluťoučký kůň pěl ďábelské ódy" is a legal sentence ;-)

    And my question is, how to receive unicode names using obex parser?

    PS: Mobile phones seem to deal with those names quite well...

    Thx! Karel

    Filed under:
  • 08-21-2007 3:58 PM In reply to

    Re: OBEX Parser

    The problem is the string has to be UrlEncoded and decoded. The library doesn't currently do this.

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
Page 1 of 1 (2 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.