Tag: ASCII
Posts of Tag: ASCII
  1. C++ Program to Find ASCII value of a character

    C++ Program to Find ASCII value of a character #include <iostream.h> #include <conio.h> void main() { clrscr(); char ch, c; int cha; cout << "Enter a character:"; cin >&...Learn More
    C++ ProgramsSimpleASCIIProgramming Languages
  2. C++ Program To Print ASCII value of Digits,Uppercase and Lowercase Alphabates

    C++ Program To Print ASCII value of Digits,Uppercase and Lowercase Alphabates #include <conio.h> #include <iostream.h> #include <dos.h> #include <process.h> void main() { clrscr(); ...Learn More
    SimpleASCIIC++ ProgramsProgramming Languages
  3. Encoding utf-8 to base64 with accents

    I have some data like this: data1 = ['Agos', '30490349304'] data2 = ['Desir\xc3\xa9','9839483948'] I'm using an API that expects the data encoded in base64, so what I do is: data = data1 string = base64.b64enc...Learn More
    Pythonencodingutf-8ASCIIBase64Programming Languages
  4. model.__unicode__() returning russian string cause TemplateSyntaxError

    code: class Gallery(models.Model): title = models.CharField(max_length=100) description = models.TextField(blank=True) created = models.DateField(auto_now_add=True) class Meta: verbo...Learn More
    PythonDjangoUnicodeASCIIProgramming LanguagesFramework
  5. Python: fetching SVG file using urllib is returning binary when I need ASCII

    I'm using urllib (in Python) to fetch an SVG file: import urllib urllib.urlopen('http://alpha.vectors.cloudmade.com/BC9A493B41014CAABB98F0471D759707/-122.2487,37.87588,-122.265823,37.868054?styleid=1&amp;v...Learn More
    PythonASCIIurllibbinary-dataProgramming Languages
  6. Pygame program that can get keyboard input with caps

    I have a Pygame program that needs text input. The way it does this is to get keyboard input and when a key is pressed it renders that key so it is added to the screen. Essentially it acts like a text field. Th...Learn More
    PythonASCIICharacterPygameShiftProgramming Languages
  7. Python BOM error in Ascii file

    I have a weird, annoying problem with Python 2.6. I'm trying to run this file (and the other), on my Embedded Linux ARM board. http://svn.tuxisalive.com/software_suite_v3/smart-core/smart-server/trunk/TDSServi...Learn More
    PythonencodingASCIIbyte-order-markProgramming Languages
  8. feedparser fails during script run, but can't reproduce in interactive python console

    It's failing with this when I run eclipse or when I run my script in iPython: 'ascii' codec can't decode byte 0xe2 in position 32: ordinal not in range(128) I don't know why, but when I simply execute the fee...Learn More
    PythonUnicodecharacter-encodingASCIIfeedparserProgramming Languages
  9. Python write to file

    I've got a little problem here. I'm converting binary to ascii, in order to compress data. All seems to work fine, but when I convert '11011011' to ascii and try to write it into file, I keep getting error Unic...Learn More
    PythonBinaryASCIIProgramming Languages
  10. Python Unicode CSV export (using Django)

    I'm using a Django app to export a string to a CSV file. The string is a message that was submitted through a front end form. However, I've been getting this error when a unicode single quote is provided in t...Learn More
    PythonUnicodeutf-8CSVASCIIProgramming Languages
  11. Python convert mixed ASCII code to String

    I am retrieving a value that is set by another application from memcached using python-memcached library. But unfortunately this is the value that I am getting: &gt;&gt;&gt; mc.get("key") '\x04\x08...Learn More
    PythonMemcachedASCIIProgramming Languages
  12. Python:Ascii character<->decimal representation conversion

    Hi I need to be able to convert a ascii character into its decimal equivalent and vice-versa. How can I do that?...Learn More
    PythonASCIIProgramming Languages