Re: Decoding extended ascii base64 string

From: Nicole Calinoiu (calinoiu)
Date: 03/30/05

  • Next message: Feldman Alex: "Re: Changing folder security"
    Date: Wed, 30 Mar 2005 10:21:43 -0500
    
    

    How is the string encoded in the client application? If UTF-8 isn't working
    for decoding, it's likely that some other format is being used for the
    original encoding. You'll need to know what the format is before you can
    decode properly.

    "Mandy" <Mandy@discussions.microsoft.com> wrote in message
    news:41151599-F68E-40D5-9B8C-D66EA038DC6A@microsoft.com...
    > Hi,
    > I have an application that sends a .NET (C#) web service an base64 encoded
    > string. This string sometimes includes extended ascii, e.g. é ù ô and
    > when I
    > try to decode this string in the webservice using:
    > string decodedString = Encoding.UTF8.GetString( Convert.FromBase64String(
    > base64String) );
    >
    > (string decodes fine if only a-z, A-Z in original string)
    >
    > All the extended ASCII letters are missing, and if I just try to do:
    > Convert.FromBase64String( base64String);
    > The service throws an invalid character error.
    >
    > When I try to decode the string via online decoders, the string decodes
    > fine
    > with all characters so I'm pretty sure the encoded string is correct.
    >
    > Does anyone have any ideas on how I can get the whole decoded string? Any
    > help would be most appreciated!
    >
    > Cheers,
    > Mandy
    >


  • Next message: Feldman Alex: "Re: Changing folder security"

    Relevant Pages

    • Re: TLV Objekte aus Datei lesen
      ... Weil STRING als OCTET STRING und IA5STRING vorkommen, das aber piepegal ist, schere ich die alle über einen Kamm und komme mit meinem STRING aus. ... Es gibt hier keinen Len-Parameter beim Decode. ... In meinen Daten haben die meisten der Arrays eine ein- oder zweibyteige Angabe der Anzahl der Records am Anfang. ... technischen Daten der Karte sofern sie in der Datei stehn). ...
      (de.comp.lang.delphi.misc)
    • Re: Sending floats over a client-server in Smalltalk
      ... The trick is knowing what to decode them ... Then encode the number in the remaining bytes. ... ByteString>>floatAt: byteIndex ... I could then take a string ...
      (comp.lang.smalltalk)
    • Re: [Full-Disclosure] Phishing scam - Obfuscated url help please
      ... > Let's decode a URL that may end up making IE destroying the PC or ... just to trick some clueless newbie or "typical user" but to outwit ... string variable and writes that to a file). ... output file with a "safe" file viewer. ...
      (Full-Disclosure)
    • Re: Html UTF to C# UTF
      ... I'm trying to decode a string with this format ... I heard also of HttpUtilties class but it seems it's not available when you ...
      (microsoft.public.dotnet.general)
    • Re: Selecting a record froma table where a column might be null
      ... In perl dbi, ... So you use the decode function in your ... string null in decode you can ... Win a $20,000 Career Makeover at Yahoo! ...
      (perl.dbi.users)