Questions tagged as 'ascii'

3
answers

Build string with special characters

I'm building PDF's, and I need to print a string with special characters. For this I am constructing the string as follows (using iTextSharp ): PdfPCell teste = new PdfPCell(new Phrase("<O meu texto> '\u20ac'", fontetexto)); Now...
asked by 28.02.2014 / 16:05
3
answers

How to avoid encoding problems when taking data with TwitteR?

I'm getting Twitter data with the twitteR package for r but the tweets are coming with encoding problem. Does anyone know how to work around this problem? library(twitteR) library(stringr) library(ROAuth) library(RCurl) options(RCu...
asked by 21.02.2014 / 03:06
2
answers

Search for texts in DB without '/ br'

I'm working on a CMS that does text editing already in the database, it works as follows: there is a series of inputs[type="radio"] each one of them is a project, and when one of them is clicked appear 4 textareas (via Ajax) with t...
asked by 16.10.2014 / 16:13
2
answers

displaying characters using numeric codes: & # 2039

I tried searching for it on Google, but it was difficult because a lot of other subjects are related, so here I ask. I am using special characters, printed from their numeric code, on a page: & # 2039 = ߷ But some characters are not di...
asked by 14.02.2017 / 17:09
1
answer

Error: incompatible character encodings: UTF-8 and ASCII-8BIT

Incompatible character encodings: UTF-8 and ASCII-8BIT . {"utf8"=>"✓", "authenticity_token"=>"3cl0R8ghLDvPMGkh0I+LCrzQjmyu1donLE9y58rIT1k=", "post"=>{"title"=>"Somos apaixonados por música!", "caption"=>"Estamos entrando n...
asked by 04.06.2014 / 15:58
1
answer

Printing ASCII extended in C

Look at this simpes code written in C: unsigned char *palavra = "fantástica"; int tamanho = strlen(palavra); int i; for (i = 0; i < tamanho; i++) printf("%i ", palavra[i]); printf("\n"); Output fetched: 102 97 110 116 195 161 115...
asked by 11.06.2016 / 06:45
1
answer

How to convert this code from version 2 to 3.4 of Python?

I am having difficulty converting the code below to Python's 3.4 version, the purpose of this code is to encode and decode hexes in order to create shellcodes . import binascii, sys, time RED = '3[31m' WHITE = '3[37m' RESET = '3[0;0m' def...
asked by 03.04.2015 / 07:18
1
answer

Send CR LF through the serial port C #

I'm communicating with Serial ( SerialPort ) with a device that needs me to send the CR LF commands at the end of each statement so the device understands that an instruction has been sent to it. The instructions that I should send ar...
asked by 10.01.2014 / 17:44
2
answers

ASCII reading files of the Demographic Census 2010

Does anyone know where to download the ASCII (.sas) files for reading the microdata of the 2010 IBGE Demographic Census? I know the Anthony Damico just keeps some files on his site (see below how to do the download), but I am looking for th...
asked by 28.09.2015 / 17:20
1
answer

Encode Python ASCII

Hello, I'm not able to correctly encode the following string in Python:    Algorithm I have tried the following alternatives: u'algor\u00edtimo'.encode('utf-8') 'algor\u00edtimo'.decode('utf-8') u'algor\u00edtimo'.encode('ascii') u'algo...
asked by 25.02.2015 / 20:51