Hi there, I have a file with unicode characters I used url decoder code below on a large file, but what is funny is that it doesn't decode some lines,but when I use the code on a file with just that line it decodes it correctly. import urllib.parse for lines in open('mytxt1.txt'): s = urllib.parse.unquote(lines,encoding='latin-1') with open ('outtxt1.txt','a') as f1: f1.write(s) f1.close() for example *login=bob%40%3CSCRipt%3Ealert%28Paros%29%3C%2FscrIPT%3E.parosproxy.org* is not decoded, but when using just one line i get *login=bob@<SCRipt>alert(Paros)</scrIPT>.parosproxy.org*

Member Avatar
Member Avatar
+0 forum 4

I'm making a word descramble program for http://www.hackthissite.org/missions/prog/1/ . I think I have a lot of this code correct but I dont know how to read each indivdual character in the scrambled string and compare it to the letters in the unscrabled string from the word list. #include <iostream> #include <fstream> #include <string> using namespace std; int main() { int i, l; string x, y; do { fstream file; file.open("text.txt",ios::in|ios::out|ios::nocreate); getline(file, x[i]); //read a string i++; }while(file); file.close; do { fstream file; file.open("scramble.txt",iso::in|ios::out|ios::nocreate); getline(file, x[i]); //read a string l++; }while(file); file.close; while(i >= 0) { if (x.length() == y.length()) { …

Member Avatar
Member Avatar
+0 forum 8

Hi! It's me again and [this](http://en.wikipedia.org/wiki/Decoder) is a decoder! **The goal:** And I'm trying to make a program that solves logical problems related to the decoder device. For that I need a loop that write true/false into a boolean[][] based on the rules. Say we have a decoder with 3 inputs. That means that it has 8 outputs (2^(numberOfInputs) = 8). I need a method to write this (example of 3 inputs): |0|0|0| |0|0|1| |0|1|0| |0|1|1| |1|0|0| |1|0|1| |1|1|0| |1|1|1| Notice the third column (actually called column 0, the middle one would be 1, the most left one 2). 2^0 …

Member Avatar
Member Avatar
+0 forum 4

So I have a Windows 7 Ultimate 64-bit PC that I use as a Media Center. It has an ATI video card with HDMI out that I use for both video and audio output. An HDMI cable runs from the PC to a Pioneer Elite A/V receiver and then out to my speakers and a Mitsubishi 1080p projector. The resolution is 1920x1080 and it looks great. The problem is that sometimes the audio decides to stop working and I get audio decoder errors in media center mode. When I exit media center and look in my Windows audio devices the …

Member Avatar
+0 forum 0

The End.