Questions tagged [ansi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
334 views

My text file is riddled with question marks. How can I make it readable?

When I open one of my text files in Visual Studio Code, the text contains a lot of question marks where I had expected to see Swedish letters, such as å, ä, ö : ^ click to enlarge Down to the right (...
  • 656
0 votes
1 answer
31 views

How to go from control characters to a key and back

What is the best way to obtain a two-way dictionary between a specific key (specified by either a descriptive name or by the press of a the corresponding key) to a code like \e[7~ as used in .inputrc ...
  • 101
-1 votes
1 answer
2k views

How to convert multiple files encoded in UTF-8-BOM to ANSI?

I'm trying to convert multiple files that are encoded in UTF-8-BOM back to ANSI. I found out that with Powershell using this command: PS> get-item c:\temp\utf8\*.* | foreach-object {get-content -...
  • 1
0 votes
1 answer
350 views

Right Alt + letter 'a' doesn't work

Good morning to all! I'm having a problem with my new keyboard and I'm going to share it here to see if someone can help me. I am from Spain and I have always used national ISO keyboards but as I am a ...
0 votes
1 answer
133 views

How can I see all ANSI symbols in Notepad++?

I need see all ANSI symbols in Notepad++ to create formulas, expressions and equations math in Notepad++.
0 votes
0 answers
2k views

I am trying to convert a CSV file to ANSI format with Textedit on Mac OS High Sierra version 10.13

I have to provide CSV files with Energy Manager consumption data to an Energy Management System (EMS) and I am working on a Mac with OS High Sierra Version 10.13. I work with LibreOffice and with the ...
0 votes
2 answers
2k views

Sending correct escape sequences in terminal

Issue To scroll a few lines up in WeeChat one is supposed to press <Alt> + <PgUp>. When I press these keys, the program thinks I'm pressing <Alt> + , instead. Debugging In my ...
  • 307
0 votes
0 answers
451 views

How can I get a WSL window with full colour support in Windows GUI Emacs?

How can I get WSL [Windows Sub-system for Linux] to run in a window on Windows GUI Emacs? The only way I can do it so far is to enter a subshell in either emacs shell or term cmd by entering the wsl ...
  • 1
2 votes
1 answer
2k views

Stop VS Code from auto guessing encoding

I use VS Code to make a German site. I use a German special character in a style.css file. After restarting VS Code and changing the file encoding from UTF-8 to Windows-1252, I get what is shown in ...
1 vote
1 answer
2k views

Is it safe (no data loss) to convert ANSI to UTF-8 and then back to ANSI?

Is it safe (no data loss) to convert ANSI to UTF-8 and then back to ANSI? I have read that you can lose data going from UTF-8 to ANSI. But if the file was changed from ANSI to UTF-8 (and not changed ...
  • 13
0 votes
0 answers
29 views

How to be sure that a script saved with ANSI is going to work on every client environment?

Long story short. How can I fix users environments, to make them run our scripts using ANSI encode? The problem is, we send them scripts to run on their databases using ANSI encode. But some of ...
2 votes
0 answers
294 views

Tools for converting 8-bit C1 control characters to ESC sequences?

The ECMA-48 ("ANSI escape sequences") standard describe two ways of encoding the C1 set of control codes: using 2 character ESC sequences, or alternatively, using 8-bit control characters. Wikipedia ...
0 votes
0 answers
2k views

Using .bat to convert ANSI to UTF-8 in windows [duplicate]

So, I have o convert a .csv file from ANSI encoding to UTF-8 in windows, using a .bat file. Basically a program capable of doing this conversion without needing Notepad++ nor excel and etc. Do you ...
2 votes
2 answers
30k views

Convert a text file from ansi to UTF-8 in windows batch scripting

We have a text file which is in default ANSI format and that needs to be converted into UTF-8 format. Is there any way we can use the general windows DOS commands to convert the file? We can use the ...
  • 21
6 votes
5 answers
47k views

Change the default of encoding in Notepad

I wanted to change the default of encoding in Notepad (ANSI) to UTF-8. According to following link went ahead and this work was done. But still remains a problem. If create a text file, the default ...
1 vote
1 answer
11k views

Is there a way to force Notepad++ Encoding to Windows-1252?

Is there a way to force Notepad++ Encoding to Windows-1252 for files that it doesn't auto-detect the encoding? It seems it defaults to UTF-8 and I want it to default to Windows-1252 instead. Thanks ...
  • 11
3 votes
2 answers
13k views

What is the difference between Windows-1252 and ANSI encoding?

I'm trying to convert UTF-8 to ANSI encoding through a tool. But it shows Western European (Windows)-1252 instead of ANSI. Are they both the same thing? Should I go ahead with this?
  • 99
1 vote
0 answers
29 views

OS X: Trying to run an application in terminal and create an image of it

I am trying to run a program such as tload or slurm which graphs a system metric over time, and make its input into an image that has ANSI color support. The best I can think of is using ...
0 votes
1 answer
861 views

Unicode and ASCII backward compatibility

If first 127 characters are same then why are we still using ASCII and is there backward compatibility issue when using Unicode instead of ASCII
2 votes
2 answers
2k views

Create new file in WinSCP with UTF-8 without BOM encoding

I'm using WinSCP in order to work via SFTP with a remote server running a Linux distro. I'm also using Notepad++ (latest version) as my text editor (when editing a remote file). When I use WinSCP to ...
2 votes
3 answers
19k views

Unicode text lost when saved as ANSI

When I saved a text file using a notepad with ANSI, I lost all of the information since it became all question marks. Is there a way to convert it back to Unicode to retrieve the text?
2 votes
3 answers
2k views

What's the deal with terminal colors?

There are 256 terminal color escapes available: 8 "system" colors (0 - 7) 8 "bright" system colors (8 - 15) 216, or 6*6*6 "RGB" colors (16 - 231) 24 "grayscale" colors (232 - 255) The "RGB" colors ...
1 vote
0 answers
84 views

Ruby ri output not coloured in iTerm 2

When I run Ruby ri in an iTerm 2 terminal window, the output is not coloured and I don't know why. Other programs such as Vim work with colour properly. Running ri -f ansi Array.sort results in ...
  • 2,161
34 votes
1 answer
140k views

ANSI to UTF-8 in Notepad++

I have a text encoded in ANSI: When I tried to convert it into UTF-8 (using the Notepad++ menu Encoding > UTF-8), I get some weird characters: I thought that UTF-8 was a superset of ANSI and that I ...
3 votes
1 answer
961 views

Handling black text in a dark terminal colour scheme

I tweaked my colours in iTerm (though the specific terminal application I use is not relevant). I chose a dark background colour, and defined red, green, yellow, etc. All was well until I ran npm ...
2 votes
2 answers
835 views

Ansicon vs. Batch File

I am attempting to make a colored command prompt in Windows 7. Using ansicon, I have successfully managed to create the prompt. However, when I put the commands into a batch file, I receive an error....
5 votes
3 answers
1k views

Xterm control sequence to get RGB value for ANSI color

The meat In (some) terminals you can use a sequence like this; printf "\e]4;3;rgb:cc/78/33\e\\" to set the third color in the ANSI color palette to the RGB values represented by #CC7833. ...
1 vote
1 answer
2k views

How do I change the color palette of Windows command prompt? [duplicate]

First, I don't want this: How to change the default color of the Command Prompt? When I say color palette, I mean the real scheme/palette, not just foreground+background. I want to change the ...
0 votes
1 answer
267 views

How those undocumented ANSI codes work

I found gnu head ANSI art (that show up in alsmot grayscale on Cygwin terminal) and it have undocumented ANSI CSI SGR numbers like: [38;5;243m Wikipedia say that the numbers are up to 109. What ...
  • 2,673
1 vote
1 answer
255 views

Where can I find documentation about GNU/Linux TTY formatting

On gnu.org site there is GNU Head that can be display on terminal it have XTerm compatible (Normal documented ANSI Codes) but it also contain TTY version (it work on Cygwin, didn't test in XTerm or ...
  • 2,673
0 votes
1 answer
1k views

How does excel manage to correctly decode this file contents?

I start with an excel file with the contents in each row: TEST çığ öğö çüş Then I export this file as a CSV file and save it as ANSI format (which from what I have read is same as US-ASCII). When I ...
  • 143
2 votes
1 answer
10k views

Convert ANSI text file(s) to UTF8 on Windows command line

I would like to convert (an) ANSI-encoded text file(s) (Win 1252) to UTF8 without BOM, ideally via a command-line call. My use-case: I export .tex files from Stata which I want to compile with ...
  • 121
23 votes
2 answers
114k views

Changing the default ANSI to UTF-8 in Notepad

I got an e-book reader a few months ago, and I finally figured out why it doesn't display .txt files correctly. It doesn't like ANSI. It has no problem with the other 3 types of coding notepad ...
  • 231
9 votes
3 answers
4k views

How to convert ANSI colored text to PDF

I have a program that generates console output colored with ANSI codes. How to convert it to PDF keeping the colours? I need a unixish command line solution
  • 241
1 vote
0 answers
1k views

ANSI Russian docx to unicode

I've a big ms-word doc file which contains ANSI encoded russian texts and some fomula's with special formatting. I would like to know is there any tool using which I convert the "ANSI" encoded doc ...
0 votes
2 answers
4k views

How to convert unicode font to ansi

I am trying to use bengali writing product AVRO but since it uses UNICODE by default so working with ADOBE products like photoshop, pagemaker, etc. are not working at all. When i change the mode to ...
4 votes
1 answer
2k views

Process ANSI escape codes before piping

I'm trying to pipe the output of a script (Mocha) to another script. However there is one problem: Mocha generates quite a few ansi escape characters to update the screen on the fly. These characters ...
  • 414
1 vote
2 answers
2k views

ANSI file with charSet with latin character

I´m with a doubt about encoding/charset. I make a test. Typing the string "TEST Á" without the quotes in Notepad++ with encode in ANSI. "The ANSI charsets are all the same for ASCII characters such ...
10 votes
2 answers
64k views

Why does [ALT+224] return Ó instead of alpha?

I'm on WIN 7. I found that windows is using ANSI, not ASCII. So when I type ALT + 224 i get Ó, instead of α. To get α I have to manually copy it from the windows character map every time I want to use ...
  • 103
59 votes
8 answers
63k views

Windows console with ANSI colors handling

Is there any console emulator for Windows that interprets ANSI coloring? We use rspec and a part of our team use Windows and the special string for coloring are not very useful for them ;).
  • 715
3 votes
2 answers
8k views

How to pipe Windows "dir" in ANSI codepage

This applies to both Windows XP and Windows 7. Some of my files have names with European characters, for example the German a-umlaut, also known as a-diaeresis. These are displayed correctly in ...
0 votes
1 answer
243 views

ANSI Colors & Syntax

Is there a mapping of ANSI colors to their syntax in a given shell? For example, in BASH, Blue seems to be Folders and Green seems to be executable files. Does a list exist for what ANSI colors mean ...
12 votes
4 answers
28k views

How do I get excel to not mess around with the formatting of a .csv file

I have two issues with a csv file that occur when I try and edit it in Excel. I have an ISBN column that gets reformatted to scientific format every time I save the file The encoding for the file is ...
  • 1,191
26 votes
4 answers
9k views

Escape non-printing characters in a function for a Bash prompt

In a Bash Prompt (PS1 variable), I'm calling a function to potentially add text to the prompt: export PS1="\u@\h \$(my_function) \$ " However, the function in the prompt contains ANSI color codes ...
31 votes
6 answers
38k views

How can I change the colors of my xterm using Ansi escape sequences?

I would like to change the colors (background, font, foreground) of my xterm from the commandline. I've heard that this can be done using ANSI escape sequences. If this is possible: How is it done? ...
14 votes
3 answers
6k views

PHPUnit Windows command box nice colors

I have PHPunit installed on a Windows machine. But I don't get nice output on my command line. With the green colours. Someone on the PHPunit mailing list told me I need the ansi.sys driver. Can ...
  • 189
18 votes
4 answers
6k views

Terminal that supports the ANSI italic escape code?

I would like to replace GVim with Vim in the terminal. One of the nice things about GVim is that it is able to display text using italics. Vim allows setting an ANSI escape code for italics (\e[3m), ...
1 vote
1 answer
737 views

ANSI prompts messed in Ubuntu 10.04 terminal window (Unicode 0002), but ok in Putty

My bash prompt is: PS1='\e[1;31m\]\[\u\e[0m\]@\h [\e[1;33m\]\w\[\e[0m\]]\$ ' (reddish username, yellowish current directory). If I connect with Putty from a Windows machine, everything is fine. If ...
  • 133
16 votes
2 answers
70k views

Is it possible to change the default encoding in notepad? [duplicate]

On windows 7 (x64), the default option, for saving text files in notepad is ANSI. One can select other encoding from the combo box, however, I'd like this option to be the default.
  • 735
2 votes
1 answer
1k views

Bash color prompt and long commands

I'm colorizing parts of my bash prompt using ANSI escape sequences. This works great, until the command I'm currently typing in is long enough that it has to wrap. Instead of the rest of the command ...
  • 1,679