decode

Decoding Manchester biphase-mark in software (representing a SMPTE timecode audio stream)

I've never had to deal with signal/stream encoding or decoding before, at least not beyond fairly basic protocols like HTTP, so forgive me if I'm making this harder than I should be. Several of the systems we use at work rely on SMPTE timecode to operate, a Manchester biphase-mark system that occupies 1kHz of bandwidth between 1kHz and ...

How can I call a standard .NET assembly within SQL

Hi, I am having an issue whereby a column within a table of mine has data which is encoded using the System.Xml.XmlConvert.Encode method. Now I need to manipulate this data within SQL and have not found a way to duplicate the System.Xml.XmlConvert.Decode method. So I've been investigating how I can use the System.XML namespace within S...

URL Decoding in PHP

I am trying to decode this URL string using PHP's urldecode function: urldecode("Ant%C3%B4nio+Carlos+Jobim"); This is supposed to output... 'Antônio Carlos Jobim' ...but instead is ouptutting this 'Antônio Carlos Jobim' I've tested the string in a JS-based online decoder with great success, but can't seem to do this operation s...

Decoding base64-encoded data from xml document

I receive some xml-files with embedded base64-encoded images, that I need to decode and save as files. An unmodified (other than zipped) example of such a file can be downloaded below: 20091123-125320.zip (60KB) However, I get errors like "Invalid length for a Base-64 char array" and "Invalid character in a Base-64 string". I marked t...

What is the fool proof way to convert some string (utf-8 or else) to a simple ASCII string in python

Inside my python scrip, I get some string back from a function which I didn't write. The encoding of it varies. I need to convert it to ascii format. Is there some fool-proof way of doing this? I don't mind replacing the non-ascii chars with blanks or something else... ...

problems with decodeURI with %^ characters

Code: <script type="text/javascript"> var uri**="%^my test**.asp?name=ståle&car=saab"; document.write(decodeURI(uri)); </script> Error: Line: 6 Error: The URI to be decoded is not a valid encoding is there anyway of decoding the combinations like %^ before calling the actual decodeURI ...

encoding/decoding string and a special character to byte array

Hi I had a requirement of encoding a 3 character string(always alphabets) into a 2 byte[] array of 2 integers. This was to be done to save space and performance reasons. Now the requirement has changed a bit. The String will be of variable length. It will either be of length 3 (as it is above) or will be of length 4 and will have 1 spe...

convert byte array to string without interpreting the bytes?

Hi I have a GSM date/time stamp from a PDU encoded SMS it is formatted as so \x90,\x21,\x51,\x91,\x40,\x33 format yy,mm,dd,hh,mm,ss I have read them from a binary file into a byte array. I want to convert them to a string but without doing any decoding I want to end up with a string that contains 902151914033. I then need to reverse ...

Get decoded frames in Flash (FLVplayback)

Hi, I want to know if it is possible to get the decoded frames from FLVPlayback, or if it is known another alternative to access the decoded frames from a flash player. What I want to do is to manipulate the decoded frames before they get rendered on screen. The video source could be an RTMP stream or a FLV (F4V) file. Any hint is welc...

browser url encoding different that java's URLEncoder.encode

I have a url like this: product//excerpts?feature=picture+modes when i access this url from browser, the backend receives the request as: "product//excerpts?feature=picture+modes" At the web server end, i am using + as a separator. so feature=picture+modes means there are 2 features: picture and modes I have created and automated scri...

Decode() function query in oracle

Can we use a select query in embedded sql (pro C) as the first argument in Decode() function. ...

Best way to decode hex sequence of unicode characters to string

Hi! I'm working with C# .Net I would like to know how to convert a Unicode form string like "\u1D0EC" (note that it's above "\uFFFF") to it's symbol... "" Thanks For Advance!!! ...

How do you ask gstreamer if a file can be played?

I'm trying to write a simple command line audio player using the Python Gstreamer bindings. Is there a function in the gstreamer API that determines in advance whether or not a particular file (URI) can be decoded and played by the currently installed set of codecs? ...

Fast alternative to java.nio.charset.Charset.decode(..)/encode(..)

Anybody knows a faster way to do what java.nio.charset.Charset.decode(..)/encode(..) does? It's currently one of the bottleneck of a technology that I'm using. [EDIT] Specifically, in my application, I changed one segment from a java-solution to a JNI-solution (because there was a C++ technology that was most suitable for my needs than...

HTTP packet decoder/reader

i need a c program to decode http packets. can someone help me or refer to some pointers. Thanks in Advance. Raj. ...

How to decode a string on runtime in java?

I'm creating email client, when i receive emails from blackberry server it sends file name as "=?utf-8?B?anBlZ2F0dGFjaG1lbnQuSlBFRw==?=" but the original filename was "jpegattachment.JPEG", and sometime I get the plain text when I receive from other mail servers. So here my problem is I can get a string which may or may not be encoded. ...

Read the information my computer is sending on an ssl connection

I would like to read the information a java application in firefox is sending to a website over an ssl connection. I am using WireShark, and I believe that if I can somehow tell tell wireshark what encryption key firefox is using, then wireshark will be able to decrypt the ssl messages. Then I will exactly what information this website...

Decoding JSON feed via PHP from Twitter not working?

Hello my fellow coders! So I'm pulling down a user's tweet steam in JSON format via PHP. I'd like to decode it into an associative array or at least some more usable fashion rather than a string so that I can maneuver through it. I've been reading like mad about json_decode, but for me it seems like when I use it, before and after, the...

Where can I find good 2D-code library for Java ME?

Do you know any good library for Java ME? Application from http://www.i-nigma.com/ works very well, but there is not too much information on this website. Of course I found http://qrcode.sourceforge.jp/ but compared to above its really mediocre. I need this library to read 2D-code and then decrypt cipher. Library can be commercial. ...

Encoding and decoding

I am looking to encode some text that could be 1 charchter long or or 10,000 or infinite and decode (reverse the algorithm). I am looking something like MD5 on PHP, but reversable, as MD5 is one way. This could be server side or JavaScript. If both, then it's even better. ...