encoding

Python conversion to ISO-8859-5

I'm facing problems when trying to convert a UTF-8 file (containing Russian characters) into an ISO-8859-5 file: 'charmap' codec can't encode character u'\ufeff' in position 0: character maps to . Has anyone got an idea of what's wrong(?) given the following: def convert(): try: import codecs data = codecs.open('in.t...

Adobe Flash CS3 Profesional - missing DirectShow 9 and QuickTime 7

In Adobe Flash CS3 Profesional and when I start the Flash Video Encoder I get the following message: "A required system library did not initialize properly. Please ensure you have DirectShow 9 and QuickTime 7 or higher installed on your system." ...

How to restrict a software for only 1 time use??

Hello guys, I need a solution of this question " How can I restrict a software for only 1 time use " Means binding a software to only 1 Pc for only 1 use ... Hoping to get some ideal answers .. Please help me. Thanks ...

Why is Rails encoding slashes for catch all (splat) routes?

When using a catch all route the URLs have the forward slash encoded as %2F which means I can not lookup a record using request.path map.document '*path', :controller => 'documents', :action => 'show' Page.find_by_permalink('/blog/my_first_post') # Record found Page.find_by_permalink('blog%2Fmy_first_post') # Record not found Firstly...

How can I set the encoding on a Perl pipe?

Hello! Is "'|-:encoding(utf-8)'" in "open my $column, '|-:encoding(utf-8)', qw(column);" ok? It seems to work almost. In the row with the "Mikołaj" the formatting is not correct; how can I fix it? #!/usr/bin/perl use warnings; use strict; use utf8; binmode STDOUT, ':encoding(utf-8)'; # edit: binmode DATA, ':encoding(utf-8)'; open my $c...

Serializing a WPF Image

I'm trying to understand how image serialization works in WPF. I have the following class: [Serializable] public class TestClass : ISerializable { public TestClass() { } protected TestClass(SerializationInfo info, StreamingContext context) { SerializedImage = (byte[])info.GetValue("SerializedImage", typeof(byte[]))...

How to safely encode PHP string into alphanumeric only?

How to safely encode PHP string into alphanumeric only string? E.g. "Hey123 & 5" could become "ed9e0333" or may be something better looking It's not about stripping characters, its about encoding. The goal is to make any string after this encoding suitable for css id string (alnum), but later I will need to decode it back and get the or...

android default encoding

What is the default encoding of android system ? ...

Can I include characters such as "ã" and "ê" in UTF-8 encoded XML, or must it be UTF-16 encoded?

Can I include characters such as "ã" and "ê" in UTF-8 encoded XML, or must it be UTF-16 encoded? ...

Howcome my SQL query is not sorting the column?

http://new.monmouthchineseschool.com/curriculum/cantonese/textbook.php if you take a look at 'C1' 一 十 十一 十二 十三 二 三 四 五 六 七 八 九 that is how all the links look like. this is the mysql db for that class CREATE TABLE IF NOT EXISTS `mon_textbook` ( `id` int(11) NOT NULL auto_increment, `class` varchar(255) NOT NULL, `ch` va...

ASP.NET Multiline textbox allowing input above UTF-8

In my web.config I have <globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="en-US" uiCulture="de-DE" /> In my page directive I have ResponseEncoding="utf-8" Yet for some reason an ASP TextBox with the TextMode="MultiLine" allows inputs of characters outside of UTF-8. When I paste...

How to encode a Map<String,String> as Base64 string?

i like to encode a java map of strings as a single base 64 encoded string. The encoded string will be transmitted to a remote endpoint and maybe manipulated by a not nice person. So the worst thing that should happen are invaild key,value-tuples, but should not bring any other security risks aside. Example: Map<String,String> map = .....

URL Encoding with Underscores in a Directory Name?

We've run into an odd argument where I work, and I may be wrong on this, so this is why I am asking. Our software outputs a directory to an Apache server that replaces an underscore with a %5F in the name of the directory. For instance if the name of the directory was listed as a string in our software it would be: "andy_test", but t...

C++ library works in vb6 but not in c#

Hello, I'm writing a C# application that has to consume a C++ api provided by my customer. The library works fine when it's referenced by a vb6 application, but when I reference it in my c# application and try to call the same methods, i get a different (wrong) behaviour. The methods I'm calling take a couple of string arguments. Provid...

What Encoding is this: <ESC>[00p<ESC>(1*259*01/26/10*11.05*<CR>

I've got a .txt file given to me to parse through to pull out certain information and i'm not really wanting to write a scanner to do this. It resembles ANSI to me, with maybe a little more added to it. I don't know. It's automatic output from some hardware that's years and years old. Here is some more just to get a good idea of what i'm...

C#: Class for decoding Quoted-Printable encoding?

Is there an existing class in C# that can convert Quoted-Printable encoding to String? Click on the above link to get more information on the encoding. The following is quoted from the above link for your convenience. Any 8-bit byte value may be encoded with 3 characters, an "=" followed by two hexadecimal digits (0–9 or A–F) ...

Report xss/injection attacks by email (how to encode)

I have a form to singup yourself in a mailing list. I had set up the script to send me a mail for every singup and confirmation. The last days I saw a bunch of empty submisions (rejected). Turns out filter_input is that good :-) But I want to see the input of the malicious users, so I'm encoding the input and sending it to me by mail ...

PHP5 UTF-8 encoding error - PHP4 works fine

Hey, i'm having some troubles with UTF-8 encoding on a website. Calling my script using PHP5 all the umlauts (ä, ü, ö,...) look like this: ökflödsköl Calling the script using PHP4 shows everything as expected... both php.ini look the same an so my question would be: is there an other file where i can change the output encoding? T...

Django urlsafe base64 decoding with decryption

I'm writing my own captcha system for user registration. So I need to create a suitable URL for receiving generated captcha pictures. Generation looks like this: _cipher = cipher.new(settings.CAPTCHA_SECRET_KEY, cipher.MODE_ECB) _encrypt_block = lambda block: _cipher.encrypt(block + ' ' * (_cipher.block_size - len(block) % _cipher.block...

Which vendors/companies have Multi-threaded Video codec solutions?

Hi, If its not relevant here, pls. move to correct place. I want to find out which all vendors/companies have developed multi-threaded video codecs(decoders , encoders) as commercial products? Not opensource solutions like libavcodec/x264/ffdshow etc... but commercial solutions for which one can obtain licenses/performance numbers of t...