ascii

PHP Library That Generates ASCII Art Text

I'm trying to make a captcha system that isn't the same as all the others using ASCII art text. Similar to what can be found here. Does anyone know of a library which can generate something similar? ...

How can I convert a Guid to a Byte array in Javascript?

I have a service bus, and the only way to transform data is via JavaScript. I need to convert a Guid to a byte array so I can then convert it to Ascii85 and shrink it into a 20 character string for the receiving customer endpoint. Any thoughts would be appreciated. ...

Where are the other ASCII control characters?

It seems that we only use '\0'(null),'\a'(bell),'\b'(backspace),'\t'(horizontal tab),'\n'(line fee),'\r'(carriage return),'\v'(vertical tab),'\e'(escape). Where are the other ASCII control characters?Whats the usage of other ASCII contorl characters?Do they still act as control command of printer? thanks. ...

How can I search for a character the displays as <85> in Vim?

I have a file that was converted from EBCDIC to ASCII. Where there used to be new lines there are now characters that show up as <85> (a symbol representing a single character, not the four characters it appears to be) and the whole file is on one line. I want to search for them and replace them all with new lines again, but I don't know...

extended ascii chars and ansi in the mac osx terminal app

i wanted to create some shellscripts that display pretty ansi colored graphics for osx but unfortunately i find just very little information about that topic. osx seems to use monaco 10 as its default console font. is there some way to find out all displayable characters for this font? osx terminal runs in UTF-8 per default as far as i...

C++: Printing ASCII Heart and Diamonds With Platform Independent

I'm developing a card playing game and would like to print out the symbol for hearts, diamonds, spades and clubs. My target platform will be Linux. In Windows, I know how to print out these symbols. For example, to print out a heart (in ASCII) I wrote... // in Windows, print a ASCII Heart #include <iostream> using std::cout; using ...

Convert Unicode to ASCII without changing the string length (in Java)

What is the best way to convert a string from Unicode to ASCII without changing it's length (that is very important in my case)? Also the characters without any conversion problems must be at the same positions as in the original string. So an "Ä" must be converted to "A" and not something cryptic that has more characters. Edit: @novali...

generate a window for ascii game

Hello all Im trying to write an ascii game for an assignment. The program must be written entirely in c, no c++. How can i get the program to open a window capable of rendering ascii art? I want to create a window of a certain size, that is capable of printing in multiple colors. A simple console window is insufficient. Also, on a rela...

(grep) Regex to match non-ascii characters?

On linux i have a directory with lots of files. Some of them have nonASCII characters, but they are all valid UTF8. One programme has a bug that prevents it working with nonASCII filenames, I have to find out how many are affected. I was going to do this with find and then do a grep to print the nonASCII characters, and then do a wc -l t...

PHP and Russian Letters

What is happening with Russian letters when sending via PHP request to ... a mail, by e.g.? the "hardcoded" russians letters are displayed properly, but from the Form's textboxex with hieroglyphs: HTML page: <tr> <td style="width: 280px">Содержание работ</td> <td><input type="text" id="workContent"/></td> </tr> PHP page: $WorkCont...

Double Quotes in ASCII

What is the ASCII number for the double quote? (") Also, is there a link to a list anywhere? Finally, how do you enter it in the C family (esp. C#) ...

Language for plain text documentation

Hi, I think about storing project documentation in plain text format. The primary reasons/requirements are: easy for source controls systems to manage and track versions; simple to edit (any text editor); REDUNDANT - no additional software required for preparing the document (not generating the formatted result); can be formatted to H...

Encoding xml using ascii encoding instead of character entities

Alright, so here is my issue. I need to generate xml in Java to pass onto another application. I started off thinking this would be easy using an org.w3c.dom.Document. Unfortunately the application I need to pass the XML off to requires that special characters like " need to be encoded as ASCII (&#034;) instead of their character entity ...

ASCII raw symbols to control a printer from a .txt file

A label printer is controled by sending a string of raw ASCII characters (which formats a label). Like this: string s = "\x02L\r" + "D11\r" + "ySWR\r" + "421100001100096" + date + "\r" + "421100002150096" + time + "\r" + "421100001200160" + price + "\r" + "E\r"; RawPrinterHelper.SendStringToPrinter(printerName, s); This hardcoded v...

Unassigned chars in the ascii spectrum?

Are there any unassigned, invisible, characters in the ascii spectrum that I could safely use as newline markers? The idea is to build a Java wordprocessor to edit Markdown in a wysiwyg fashion (like SO) but in the frame displaying the parsed markdown (unlike SO). ...

Getting correct string length in Python for strings with ANSI color codes

I've got some Python code that will automatically print a set of data in a nice column format, including putting in the appropriate ASCII escape sequences to color various pieces of the data for readability. I eventually end up with each line being represented as a list, with each item being a column that is space-padded so that the sam...

conversion of multiple ascii characters in a char array to single int using their ascii values --- c/c++

hi, anyone know a good way for doing this conversion? for example, take the char array holding ascii charcters "ABC", the int conversion i'm looking for would change those characters to a single int with value 656667. any help would be very much appreciated. edit really appreciate the replies. as someone noted i did say char array, an...

Convert ASCII byte[] to String

Hi, I am trying to pass a byte[] containing ASCII characters to log4j, to be logged into a file using the obvious representation. When I simply pass in the byt[] it is of course treated as an object and the logs are pretty useless. When I try to convert them to strings using new String(byte[] data), the performance of my application is ...

manually converting between ASCII and .NET characters

I am working on writing some code to scrub user input to my ASP.NET site. I need to scrub input to remove all references to ASCII characters 145, 146, 147, 148 which are occasionally getting input from my mac users who are copying and pasting content they write in a word processor on their macs. My issue is the following three strings I...

C++ Confusion. Reading Integer From Text File. Convert to ASCII

I am learning C++ for the first time. I have no previous programming background. In the book I have I saw this example. #include <iostream> using::cout; using::endl; int main() { int x = 5; char y = char(x); cout << x << endl; cout << y << endl; return 0; } The example makes sense: print an integer and the AS...