A character-encoding scheme based on the ordering of the English alphabet.

learn more… | top users | synonyms (1)

0
votes
0answers
21 views

need NSData to ascii85(adobe) NSString converter

I need to convert NSData to NSString with ascii85 encoding. I've found this answer: Any ascii85/base85 encoder/decoder for iOS? but the category used there uses RFC1924 character set. But I need an ...
0
votes
0answers
14 views

How to read mixed (numeric and string) Ascii in Matlab?

I have the following file in ascii format: 01/08/2008,12:16:47.000,Q,52768672,C,,12.8,50,14.3,50,,,,,,,C,09/20/2008,1700.00,256 ...
-3
votes
1answer
62 views

hex value 00 to ascii or char [closed]

I'm coding the adaptive huffman algorithm and i have a problem. Reading a JPG file byte after byte i eventually bump on this hex value 00. Which my program reads as '0'. Check the picture: ...
0
votes
0answers
29 views

C++ JSON compression?

I'm working on a C++ application which will build a JSON string that contains program state data and send it to a company server. I've found a couple of tools that will compress JSON to JSON (HPack ...
0
votes
1answer
23 views

Convert special letters to ascii letters in java

I try to convert a String with special letters (such as ä,à,è,ç,î,ñ.ö ect.) to ascii letters. My example: String newName = oldName.replaceAll("\\s","").replaceAll("[^a-zA-Z0-9]", ""); This works ...
1
vote
3answers
40 views

search those records which have column value with & in it

I have a problem in my website, I'm trying to fetch some data from a table that has courses names. I search by the name of that course. some of the names contain '&' in them, for example "Formal ...
-6
votes
1answer
39 views

Java: convert number into ASCII equivalent, how does it work? [duplicate]

Here is the code, it works, it converts 66 into the ASCII equivalent of B. int ascii = 66; char character = (char) ascii; What I don't understand is, how does it work? If this was an exam paper, ...
-1
votes
1answer
38 views

Shifting Characters (ASCII values) to the left and right.

Using Java, I have to Implement a Java code that grabs a character, say A, B, C, D, E etc and Also a shift value (int) and whatever the shift value be, shift the character to that left and right using ...
2
votes
4answers
81 views

Writing ASCII to file

I've been thinking about an easy way for a programmer to write down all ASCII characters. First I tried to print it in a console but it didn't show me all characters. So I tried to write it to a file ...
-1
votes
1answer
26 views

Validate a String for ASCII characters

I am writing a function that expects a byte array as input. This input array should represent a valid ASCII string. I am trying to figure out a way to verify the above requirement. If it makes any ...
0
votes
0answers
11 views

ASCII charcters from bluetooth into graphs

I understand that the title is confusing. I am creating an android app which communicates with an raspberry pi. It send and receives ASCII characters. I used the source code from blueterm as a ...
0
votes
1answer
35 views

is the ASCII charset endian-safe?

I was doing the math, if I keep every bit of information ( the content of a variable ) in a binary representation ( binary file in binary mode ) always under or equal to 1 byte I'm safe no matter what ...
0
votes
1answer
24 views

How can I convert an ascii raster format file to tiff using python?

I have a ascii raster format file. For example: ncols 480 nrows 450 xllcorner 378923 yllcorner 4072345 cellsize 30 nodata_value -32768 43 2 45 7 3 56 2 5 23 65 34 6 32 54 57 34 2 2 54 6 35 45 65 34 ...
0
votes
1answer
34 views

Displaying uninterpreted HTML code into a html iframe

I want to display a text with CR and tabs (let's say the code is into a var shtml) into a iframe without losing the ASCII characters. <!--var shtml--> <HEAD> </HEAD> <BODY ...
0
votes
1answer
55 views

PHP won't str_replace single quotes from database

This is really weird to explain, so here it goes... I'm fetching data from phpmyadmin that contains unescaped single quotes. I'm trying to convert ' to &apos; by using Content-Type: text/html; in ...
1
vote
2answers
70 views

how to interpret the string entered by the user?

int main() { printf("Welcome to the temperature control program:\n"); printf("enter the ascii temperature characters"); printf("enter the ascii characters of an euipment name with + or - and ...
0
votes
1answer
25 views

PHP - JSON character encoding (YouTube API)

I'm using the YouTube API to grab comments from videos in JSON, using the following code: $url = 'https://gdata.youtube.com/feeds/api/videos/' . $video_id ...
0
votes
1answer
26 views

replacing the backspace ascii in python

i'm using pyHook to capture key events to monitor my sons web activity and i have noticed that when i use the backspace key, it writes to a file as ascii, which appears as a little black box in ...
0
votes
3answers
34 views

Is CP-1251 an extension to ASCII?

If I need Cyrillic characters in ASCII format that will imply that I will need an extended ASCII table, right? I want to know if cp-1251 is an extension of ASCII and if not what is it considered to ...
2
votes
2answers
27 views

Python zipfile sending via suds error: “'ascii' codec can't decode byte 0x8c in position 10: ordinal not in range(128)”

I have the following error when I trying to send Zipfile content via suds method 'ascii' codec can't decode byte 0x8c in position 10: ordinal not in range(128) Here is my code: try: ...
0
votes
1answer
53 views

Is it possible to store a word that a user inputs as an array of characters? [closed]

I'm working on a program that encodes a sentence into a binary file by converting each individual character of the user's input into binary numeric value used to represent that character in ASCII. I ...
1
vote
3answers
48 views

Sending int to arduino through C#

So, I am trying to send an int to an arduino through a C# program. I have the C# program and arduino talking to each other just fine. I can send single ASCII bytes just fine and get the arduino to ...
0
votes
1answer
71 views

What is the longest C line-of-code using unique ASCII characters? [closed]

This challenge gets to to some of the subtle aspects of the C language. My first stab at this follows. int main(int argc, char *argv[]) { int a,b,c,d,e,g,h,i; int f[1]; double ...
1
vote
2answers
38 views

Removing strings containing ASCII

I have a string with a bunch of non-ASCII characters and I would like to remove it. I used the following function in Python 3: def removeNonAscii(s): return "".join(filter(lambda x: ...
0
votes
1answer
19 views

When to use which ASCII representation

Doing web work with PHP, JavaScript, HTML, etc. Had an issue where using a special character, in this case the less than symbol, had to be replaced with an ASCII representation in order for the code ...
0
votes
2answers
46 views

Insert ASCII code into string

I want to add a horizontal tab before a string in c# and insert into a word document. How do i append ASCII code 09 = HT ( Horizontal Tab ) at the beginning of string for word to read. Thanks.
0
votes
1answer
40 views

Is there a way to connect to DB2 on z/os using a jdbc driver

Am evaluating options other than either Sybase's DirectConnect or IBM's DB2Connect to connect to DB2 running on z/OS. From what our findings have shown us so far, we need to connect and also do format ...
3
votes
1answer
55 views

R - Importing ASCII data using a .sas dictionary file and SAScii

I recently download some data in ASCII format that came with SAS setup files which I would like to use with R. One such data file is here: https://dl.dropboxusercontent.com/u/8474088/Data.txt with ...
1
vote
2answers
43 views

PHP undefined chars ? in output [closed]

My problem is that i dont know from where those chars in my output, can anyone explain me why in my string are those characters and what ive to do to unset them ? the function is used to change 'ä', ...
0
votes
3answers
39 views

Find if character is an ASCII character in Groovy

How can I determine if char is a part of ASCII in Groovy / Grails. Is there any standard function or do I have to write my own?
0
votes
0answers
13 views

PHP DOM DOCUMENT cannot load file

All, I am trying to load an XML file into DOM, but it fails due to the following reason: Presence of the registered trademark ® (R with Circle) in the file. Basically, if it shows the trademark ...
1
vote
1answer
59 views

read ascii file with empty entries in python

I have a file that looks like: 145.342050 -0.906349 4915 145.463209 -0.844225 4915 145.502417 -0.966603 145.582172 -0.892733 4917 145.618846 -0.972673 145.681139 -0.867231 ...
0
votes
3answers
53 views

How to make MATLAB return char instead of ASCII?

So, I'm using AT Commands with Matlab to return the Caller ID, but this doesn't really matter. Everything is working great except for the fact that it returns ASCII numbers and I have to take my time ...
0
votes
1answer
53 views

Erlang identify umlauts

How can I identify german umlauts in Erlang? I tried for days now, when I read a text as list it just doesn't get them. I tried this for example change_umlaut(Word) -> ...
0
votes
3answers
37 views

repeat special character with str_repeat

i want to repeat special character or TAB. i try with str_repeat(str, int) //my function repeat function tab($num){ return str_repeat('&#09;', $num); } //if I call echo ...
-1
votes
1answer
51 views

Location of .txt file within an .xls [closed]

Can anybody with Excel knowledge help me? The nomenclature surrounding excel and its macros means I've hit a brick wall investigating this by myself. In the spreadsheet available here ...
0
votes
5answers
83 views

Can ASCII code for a char be printed in C++ like in C?

As we can print the ASCII code and increment it in C --> e.g: { char ch='A'; ch++; printf("%d",ch); } this will output "66" on the console. How can this be done in C++ ??
0
votes
2answers
54 views

Matlab: Speed-up reading of ascii file

I wrote this piece of code which works fine, but is way too slow for my purposes: %%% load nodal data %%% path = sprintf('%sfile.dat',directory); fid = fopen(path); num_nodes = textscan(fid,'%s %s ...
0
votes
2answers
34 views

Are case conversions locale-independent on the ASCII character set?

If I have a string containing only characters from the ASCII set (0 to 127), can I guarantee that converting to upper case or lower case will result in a consistent value regardless of any ...
-1
votes
0answers
16 views

Is there a tool equivalent to ascii(1), but for UTF-8? [closed]

Something like this must exist, but I haven't been able to find it. I'm looking for a simple command-line tool that will accept a decimal/octal/hex sequence as a string argument -- or an actual UTF-8 ...
-3
votes
0answers
128 views

Could anyone guide me in converting this read values to ASCII?

#include <stdio.h> #include <stdlib.h> #include "memory.h" #define actualTV 250 #define stopparity ON #define baudrate 11250 #define startparity OFF struct memory { int ...
0
votes
2answers
43 views

Matlab: Read in ascii with varying column numbers & different formats

I have been working on a puzzling question that involves reading an ascii file into matlab that contains 2 parts of different formats, the first part also including different column numbers. MESH2D ...
0
votes
1answer
76 views

Converting ascii characters in text file to Unicode

We are creating a website using Django 1.5, We have several large text files stored on the server that are to render with the web page, depending on the country. The problem is that these text files ...
0
votes
0answers
37 views

VBA Save as ASCII text without CRLF

I'm writing a code that saves a sheet as a text file. The text file should be ASCII file without CRLF (as I need to feed the text file to a software that needs it this way). I found this, but don't ...
3
votes
2answers
62 views

Efficient way to draw 3! ( 6 times) three shapes in C

I want to draw all the combinations (3! = 6) of 3 shapes , in one row : empty cell , X , or a rectangle . The current code : For empty cell : void drawEmptyCell() { ...
0
votes
0answers
40 views

Why is heart shape (ASCII) not working in Chrome

I had a question about an ASCII symbol/code... I am trying to use this ❤ shape on my site, but I am stuck because Chrome does not output this shape. It shows two stripes, but no heart. It works ...
0
votes
0answers
90 views

Google TTS API: Encoding GET request with PHP

--- SOLVED --- Problem solved. Solution is simple: file_get_contents("http://translate.google.com/translate_tts?tl=de&q=".urlencode($str)."&ie=UTF-8") To those coming here from search ...
1
vote
1answer
26 views

Detect a specific html entity character and replace it with another one

Using Javascript, I want to test for the presence of a right arrow character ⇒ in a string and replace it by a down arrow character ⇓ Basically, do something like this: if ( ...
0
votes
0answers
27 views

Unicode Using sqlite3 in Python 2.7.3

I'm trying to insert into a table, but it seems that the file I opened has non-ascii characters in it. This is the error I got: sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless ...
0
votes
4answers
88 views

Convert hex char[] to int[] in C 2 chars in 1 byte

I am trying to convert a char[] in hexadecimal format to int[] in hexadecimal. Something like this: hello --> 68656C6C6F --> [68, 65, 6C, 6C, 6F] This is my code: #include <stdio.h> ...

1 2 3 4 5 35