encoding

Silverlight 4 Audio Compression

Any suggestions on how to implement Compression of captured Audio in a Silverlight 4 Application? I'd prefer something lossy like MP3 or AAC but after my intial research only turned out one lonely pure C# FLAC encoder/decoder, anything better than this would be nice. Please note that sending uncompressed audio to the server and compress...

Design: Queue Management question (C#)

I want to build a windows service that will use a remote encoding service (like encoding.com, zencoder, etc.) to upload video files for encoding, download them after the encoding process is complete, and process them. In order to do that, I was thinking about having different queues, one for handling currently waiting files, one for fil...

How to deal with different kinds of encoding in the javascript

I recognized that based on a context in which I want to use some parameters, there are at least 4 kinds of encoding that are necessary to avoid corrupted code being executed : Javascript encoding when constructing a javascript code, e.g. var a = "what's up ?" var b = "alert('" + a + "');" eval(b); // or anything else that executes b ...

UTF-8 encoding problem with XSLT via PHP

Hi all, I'm facing a nasty encoding issue when transforming XML via XSLT through PHP. The problem can be summarised/dumbed down as follows: when I copy a (UTF-8 encoded) XHTML file with an XSLT stylesheet, some characters are displayed wrong. When I just show the same XHTML file, all characters come out correctly. Following files illu...

Goofy Unicode problem: mï ¿ ½

I have some text coming into a database that apparently has some sort of Unicode issue. the literal text coming in is "5 mï ¿ ½ in area", which appears to be some sort of unit of measure, but I can't sort out what the meaning is in context. Searching Google shows many similar results, so this is apparently a common set of symbols. ...

encoding in boost.spirit

Hi! How i can set encoding for values in assign_a? I need to set cyrrilic, but i havent any idea how to do it #include "filter_data.h" #include <boost/bind.hpp> #include <boost/spirit.hpp> #include <boost/spirit/actor.hpp> #include <boost/spirit/attribute.hpp> #include <boost/config/warning_disable.hpp> #inc...

Get file's encoding in Java

Possible Duplicate: Java : How to determine the correct charset encoding of a stream User will upload a CSV file to the server, server need to check if the CSV file is encoded as UTF-8. If so need to inform user, (s)he uploaded a wrong encoding file. The problem is how to detect the file user uploaded is UTF-8 encoding? The ba...

Character encoding issues and PHP - what encoding is this?

I have a file on my computer that I wanted to copy into a MySQL table using PHP. When I open the file the contents look fine, like normal text - but, when I attempt to read the file using PHP or insert into a MySQL table, I get all sorts of funky characters. I thought perhaps it was a utf-8 issue, so I tried setting the header header('C...

How to strip out invalid UTF-8 characters in Ruby 1.9

I just upgraded from Ruby 1.8 to 1.9, and most of my text processing scripts now fail with the error invalid byte sequence in UTF-8. I need to either strip out the invalid characters or specify that Ruby should use ASCII encoding instead (or whatever encoding the C stdio functions write, which is how the files were produced) -- how would...

email in iphone appears as jibberish

i'm using phpmailer to send myself notifications on email. the email is in html and the body contains hebrew characters. on my mac the email looks fine but on the iphone it appears as jibberish. i tried every possible combination of encoding header both on the html head tag and as a property of the phpmailer but no luck. any ideas? t...

String Encoding

I am checking for the existence of a file in the XML backup of my iTunes library. How do I change this string E:\Entertainment\Music\Latin\100% Azucar The Best of Celia Cruz & La Sonora Matancera/08 Mi Soncito.mp3 to this E:/Entertainment/Music/Latin/100%25%20Azucar%20%20The%20Best%20of%20Celia%20Cruz%20&#38;%20La%20Sonora%20Matanc...

read a plist generated with iso-8859-1

hi, i have created a plist using .net environment and after the creation i set the encoding type as "iso-8859-1" in the plist encoding type. Then I tried to read it and show in the table view. The values are not as expected. It is having few characters which are of incorrect encoding type. What should i do ? ...

automatic utf-8 encodeing in node.js http client

Hi there i am trying to load an XML from a remote host useing node.js. The problem is that german "umlaute" like "ä" are broken. Like in the browser this usualy is a simple encoding problem. But since the XML on the remote host is encoded in iso-8859-2" i had no success getting the letters back to work. The functionality is very simple...

Utf8 problem with IE and GET request using PHP

Using javascript, I'm setting the src of an iframe to an URL passing a GET variable, urlencoded with unescape( encodeURIComponent( message ) ). With IE, this works the first time I load the iframe.The utf-8 characters, as the var_dump($_GET) reveals server-side, are okay. But next calls, all I get is garbage. On the other hand, if I j...

Encoding golf: stack LCD characters to make other characters

What is the largest set of seven-, fourteen-, or sixteen-segment LCD symbols such that all of the symbols are instantly recognizable as characters that can be typed on a standard US-ASCII keyboard; if you take any subset of the symbol set and superimpose all its elements, that is also an instantly recognizable and typeable character; a...

Problem with accessing url with space followed by slash

Hello, I have a problem on my website when i am trying to access a product with a space followed by a slash. It does not work. Just using a space in a articleno works fine, but when the space is followed by a slash it does not work. Any ideas to why this is? Is it the IIS:en not knowing how to route? Or is it the browser treating space,...

Linebreaks and Spaces appearing in TextAreas

In our Cocoon environment we have a few forms with textareas. Once the user submits a form, an overview is displayed before the final submit is done. Therefor, each form-object's data is stored in POJOs. If the user is on that overview page and decides to go back to the form, the form is filled with the already submitted data read from t...

Windows active code page

I have a certain library (IBM's WebSphere MQ) which I'm using, with an API that is suppose to return a remote servers character set. After some debugging, it seems as though the return value of this function call returns the active code page of my machine. I saw this by looking at the return value of the function call and the result of...

Adding \000 to each char in a password string

Why would one do this. for ($i = 0; $i < $len; $i++) { $unicodepassword .= "{$passwd{$i}}\000"; } Context: This is a password set when creating or modifying a user in Active directory. We are rewriting some ancient code and nothing works without this. Making changes in our LDAP does not require this kind of "encoding". Also the r...

Encoding a 5 character string into a unique and repeatable 32bit Integer

I've not given this much thought yet, so I might turn out to be a silly question. How can I take unique 5 ASCII character string and convert into a unique and reproducable (i.e needs to be the same every time) 32 bit integer? Any ideas? ...