Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ascii]

American Standard Code for Information Interchange is a character-encoding scheme based on the ordering of the English alphabet. ASCII codes represent text in computers and devices that use text. It includes definitions for 128 characters - 94 printable and 33 non-printable.

1
vote
2answers
59 views

Python program fails only if run (via ssh) from a mac terminal

I am trying to run a python program on a data processing (linux) cluster. The program runs fine if I ssh to the cluster from my linux desktop and start it but fails if I ssh to the cluster from my mac ...
0
votes
1answer
26 views

How to avoid Sed changing the file format?

I was trying to use a sed file to preprocess a file, but the output from sed seems to change the format. How should I avoid it? file A.txt A.txt UTF-8 Unicode English text, with very long lines sed ...
2
votes
2answers
265 views

Emulating Alt ASCII codes in Linux

I have an Alphasmart Neo, which emulates a keyboard when connected to a computer to send text files. It basically works like a very fast typist. When it hits an accented character it tries to use the ...
1
vote
1answer
123 views

Input corrupted on Windows 10 after 1083 update: ASCII chars are replaced with �

Suddenly, likely due an update, input is corrupted for ASCII chars. I am using Windows 10 (Version 1803, Build 17134.112). Usually if I write left Alt + 254 on numeric keyboard I got black square ■ ...
0
votes
0answers
26 views

Purpose of NUL character in Bitlocker recovery text file

I was setting up BitLocker today and my recovery text file looks like this: However, I tried to copy and paste this file into another document for backup purposes, and it came out looking like this: ...
0
votes
1answer
249 views

YouTube url can't be converted to base64 again

When I tried to encode YouTube url again to base64, the value after = didn't changed except first two letters. Is that already in base64? Url Converted: http://www.youtube.com/watch?v=CvUN8qg9lsk ...
1
vote
1answer
497 views

Why does LibreOffice Calc change CSV file Character Set?

I have a .csv file export (actually printed to csv file) made on a Windows 10 machine. Working in Libreoffice Calc on Archlinux, Why can Calc open a file using settings Character Set: Western Europe (...
1
vote
0answers
936 views

How to replace Hex Characters in Notepad++

var x = { 'leaderboardNick': { 'Player': '\x72\x67\x62\x61\x28\x32\x32\x32\x2c\x20\x32\x33\x2c\x20\x38\x38\x2c\x20\x31\x29', '\u3010\u20B1\u20AC\u3011': #FFF, }, 'emoticons'...
-1
votes
2answers
106 views

A text is converting to ASCII or BINARY first?

When we type something in a text file or suppose that I'm sending an email to my friend with an attachment inside the email. In both cases of text file and email. What is happening first? Is that text/...
8
votes
3answers
834 views

Convert tab separated values to ASCII table

What is the most efficient way to convert tab separated data such as this: a b c d cat NULL NULL NULL NULL NULL NULL NULL NULL d d NULL NULL c NULL c NULL ...
0
votes
1answer
89 views

Cannot write ă symbol in name during Windows 10 setup

I am starting a brand new PC with Windows 10 pre-installed for the very first time. Now I am stuck because I cannot write the user name with this special character ă. I try to use the Alt + ASCII ...
0
votes
2answers
111 views

Why are extended ASCII values on my computer accurate until 188?

I want to be able to type special characters, and judging from this list, only from 0 to 188 (inclusive) do the characters I get out match whats on that site.
1
vote
1answer
315 views

notepad++ regex length in bytes

I am struggling with coming up with a regexp in notepad++ that finds and replaces x number of bytes with nothing. Carriage return (0D) counts, line feed counts (0A). This is the regex I am trying: (...
1
vote
2answers
112 views

Is it possible to send NUL across a serial line?

The ascii character "NUL"'s value is 0. Is it possible to send this character over a serial line without getting it interpreted as no data being sent?
1
vote
0answers
54 views

Pipe non ASCII characters to file

So, this is a bit of a dumb question... Just for fun I was trying to pipe the doge command into a file by using doge > doge.txt, but when I opened it some parts were not showing (probably because ...
1
vote
1answer
258 views

How do you write (garbled) sentences like this in Unicode?

I recently ran across a post on the Welcome to Night Vale Facebook page that looked like this. I’ve seen ASCII and NFO art before, but how the heck do you write like this? Is this done via LaTeX? ...
0
votes
0answers
266 views

Toggle Chrome showing end-of-text (and other ascii) character

I've seen some posts about general "weird" characters, but those don't exactly answer my question. In particular, I'm seeing the end-of-text character. In chrome it's rendering as: while in firefox ...
0
votes
1answer
216 views

ascii in powershell (wscript.shell)

I'm creating a script that create shortcuts to our archiving drive. I would like the filename to start with an Omega-sign; so windows always sorts it at the bottom. The output of my script shows the ...
2
votes
1answer
1k views

Can the UTF-8 code page identifier (65001) be different on other computers?

I recently tried to explain to a friend how to create a simple one-line batch file: subst t: "X:\Example" On my machine that has been working fine for years, but on theirs I ran into an issue: their ...
2
votes
1answer
4k views

Batch cmd closes with ascii art?

I'm trying to make a ascii skull in batch, yet the cmd doesn't show my art OR text when opened start cmd.exe @echo off color a cls echo ^_________-----_____^ echo ^____------ ...
-1
votes
2answers
464 views

What's up with different hexadecimal encoding schemes?

So I've been working with cryptography for about a year now, learning as much as I can about all I can. A lot of things that I've come across (like the hexadecimally [not a word, but shh] encoded ...
0
votes
1answer
3k views

In Notepad++ the encoding of a file is set to UTF-8 but the encoding is actually ASCII

I need some text files to be encoded as UTF-8 text files when I use them with Notepad++. However, sometimes I have UTF-8 selected as the encoding in Notepad++, but the file is actually in ASCII. I ...
2
votes
0answers
1k views

Can we convert non unicode fonts to unicode?

I have few non unicode(8 bit) hindi fonts, can be move these characters to Unicode space so that they work for Unicode text.
0
votes
1answer
500 views

Convert/open an ASCII file

I am trying to open an ASCII file. The provider of the file says it's my responsibility to figure it out. The first 10 lines of the file (using linux command "head -10 file.txt") are included below. I ...
0
votes
1answer
2k views

Using Notepad++ to view text files that also contain lower ASCII control characters

When using Notepad++ to view text files that also contain some lower ASCII control characters (such as NUL, BEL, and ACK), it shows every lower ASCII character in brackets like this: [NUL][BEL][ACK] ...
1
vote
1answer
91 views

Why does CTL-3/CTL-# equal CTL-[? (and others) in the case of ASCII control characters

I've been rediscovering ASCII control characters as I fiddled with some terminal emulation code, and wrote a small program that outputs the hex value of each key I press (tcsetattr() with ~ICANON). ...
-1
votes
1answer
750 views

ASCII code for Win+R

Is it possible to "emulate" the keystroke Win+R (or more generally speaking: any combination with Win key) with an ASCII code? It is possible to send Ctrl+Something as an ASCII code, so I wonder ...
0
votes
1answer
579 views

How to get csvkit to recognise long ASCII lines?

I am using Ubuntu and I downloaded this CSV file, which file tells me is encoded like: ASCII text, with very long lines, with CRLF line terminators However, when I pass csvcut -e ASCII datafile, I ...
0
votes
0answers
832 views

Converting serial port binary hex to serial port ASCII decimal

I'd like to convert a binary hexadecimal data string on one serial port to an ASCII decimal string output to another serial port. Is there already an application that does this? If not, would it be ...
5
votes
2answers
4k views

“file” command yields “ASCII text, with no line terminators”, unless I first edit the file in vim

I am experimenting a strange behaviour which I don't know how to solve. I will explain the scenario: From a Python script I'm getting a json from a simple application hosted on parse. Once I get the ...
0
votes
1answer
2k views

Batch convert images to ASCII art in GIMP

I want to convert a photoset of .png pictures to .txt files using the ASCII art generator of GIMP. I can do this individually just exporting the picture as .txt format, but I can't find any batch ...
0
votes
0answers
163 views

How to get Vim to interpret only printable ASCII characters?

What I want is pretty simple, so hopefully the fix is pretty simple. I want whatever file I open in VIM to treat each byte as a low-ASCII character. I want the character to be displayed normally if ...
2
votes
1answer
835 views

ConEmu and ASCII characters

I've been using ConEmu for quite a while, and I'm having some problems with ASCII characters in it. This doesn't happen with other terminal emulators, such as urxvt or mintty, here's a shot with the ...
0
votes
1answer
2k views

How to convert .shp to ASCII in QGIS or R?

Actually I want to convert the shp file to .grd file. But before I convert the .shp to .grd, on my thinking, first I must convert the .shp into ascii. Is it possible to convert directly from .shp to ....
1
vote
1answer
440 views

How to get ascii from a hexdump using hd?

I have this hexdump: 0100 0000 3f00 0000 0a59 6f55 90df 0100 0f00 0000 6d6f 746f 726f 6c61 2058 5431 3036 3839 3744 3245 3430 3630 3737 4143 3531 3632 3930 3937 3244 3933 3845 4343 I believe it's ...
1
vote
2answers
1k views

Modern Linux commands that parallel uuencode/uudecode functionality

I need to get binary files into text format. Years ago, I used uuencode/uudecode, and it was easy: uuencode file.xls > file.txt # Delete file.xls # Do whatever with file.txt # Now I need file.xls ...
9
votes
3answers
1k views

Why are there separate fixed-width characters for 0-9 in Japanese, compared to the typical 0-9?

Japanese (日本語) -0123456789 Typical ASCII for everywhere else - 0 1 2 3 4 5 6 7 8 9 Why was there a need to create a separate character set for the same numerals?
1
vote
1answer
289 views

Default OSX hash key produces non-ASCII error in Python?

I'm using OSX Yosemite on a Macbook Pro with a UK keyboard. When I type # into a Python file (using Alt+3) I sometimes, but not always, see this syntax error when I try to run the Python file: ...
0
votes
3answers
2k views

Accented character issue

I have a bunch of websites encoded in UTF-8. They contain accents and those weird n's with the squiggles over them and all kinds of fun stuff. When I try and open them in any text editor, even ...
4
votes
1answer
464 views

Pressing ALT+ARROW_KEYS in Visual Studio editor writes single ASCII character

I am using VS2013 as my IDE and ever since the installation it acts very oddly when pressing ALT and any of the ARROW keys. I use ALT+LEFT and ALT+RIGHT to navigate backward/forward which works in ...
2
votes
2answers
1k views

ascii value in bash/awk

i have a doubt, i know that with this command, it prints the value of a character based on the Ascii table: printf "%d\n" "'a" ##prints 97 But i wonder how can i make my programm show me the ascii ...
0
votes
1answer
119 views

ASCII text files

Given a file contains ASCII characters is there anyway to determine the operating system of origin? This needs to work regardless of the existence of newline characters
1
vote
2answers
7k views

EOF ASCII/HEX code in text files

As far as know in the end of all files, specially text files, there is a Hex code for EOF or NULL character. And when we want to write a program and read the contents of a text file, we send the read ...
0
votes
2answers
1k views

Hide non printable characters in vim

Vim shows non-printable characters prefixed with a ^ (for instance ^@ for a NUL byte). I have a column based file containing both printable and non-printable characters which is difficult to read, ...
3
votes
4answers
3k views

Windows text file viewer that works on Linux text files

Is there a way under Windows to view ASCII files that have the Linux-style newline sequence of a single ASCII LF character? Something like like a gedit for Windows. I need to to this in Windows 8.1 ...
0
votes
0answers
87 views

Need a laser printer solution to print text sent via ACSII drivers

This may be a strange question. I am preparing to install an HMI (Human Machine Interface) in a manufacturing setting that I would like to be able to have print a time/date/user report with some ...
1
vote
1answer
646 views

Search for non-characters (character replacement indicators)

I have a text file (actually a .csv exported from .xlsx in LibreOffice) with lines that have gibberish when opened in LibreOffice Calc. In VIM they appear as the following: Joe User, joe@user.com, p@...
0
votes
1answer
721 views

Use the ascii code of a character as an input to sort

I'd like to sort a file with a specific delimiter (ascii 0xff) and the records are zero-terminated. I cannot use the following command though: $ sort -z -t \xff -o data data The error message is: ...
10
votes
2answers
1k views

How to turn off ALT + numeric keypad ASCII symbol insertion?

I prefer to use the cursor keys on the numeric keypad with Num Lock turned off. This is fine most of the time but in Eclipse it's causing problems with some of the shortcuts, e.g. Alt+Up/Down to move ...
3
votes
2answers
3k views

What do the first 32 characters of the ascii table do?

The first 32 characters of the ASCII table (0x00 - 0x1F) are all of the non-printable characters (with the exception of 'DEL' which comes at the end of the table). What are these used for, other than ...