Questions tagged [ansi]

ANSI stands for American National Standards Institute. Please do not use this tag, see the full tag wiki for alternatives.

American National Standards Institute

"The Institute oversees the creation, promulgation and use of thousands of norms and guidelines that directly impact businesses in nearly every sector: from acoustical devices to construction equipment, from dairy and livestock production to energy distribution, and many more. ANSI is also actively engaged in accrediting programs that assess conformance to standards – including globally-recognized cross-sector programs such as the ISO 9000 (quality) and ISO 14000 (environmental) management systems."

(Source: http://ansi.org/)


Instead of using this tag, please use:

  • for questions about the C language standard colloquially known as ANSI C
  • for questions about ANSI character encoding (which is actually obsolete, imprecise, and incorrect terminology; perhaps see the next item instead)
  • for questions about ANSI codepages (possibly with )
  • for questions about standard SQL
  • for questions about ANSI escape sequences and ANSI colors on terminals
  • for questions about the colors used in ANSI escape sequences
  • for questions about the program ANSICON
  • for questions about the datatype in Delphi
  • for questions about the ISO C++98 programming language standard
268 questions
394
votes
2 answers

Unicode, UTF, ASCII, ANSI format differences

What is the difference between the Unicode, UTF8, UTF7, UTF16, UTF32, ASCII, and ANSI encodings? In what way are these helpful for programmers?
web dunia
  • 9,381
  • 18
  • 52
  • 64
273
votes
10 answers

What is ANSI format?

What is ANSI encoding format? Is it a system default format? In what way does it differ from ASCII?
web dunia
  • 9,381
  • 18
  • 52
  • 64
72
votes
3 answers

How to read an ANSI encoded file containing special characters

I'm writing a TFS Checkin policy, which checks if our source files containing our file header. My problem is, that our file header contains a special character "©" and unfortunately some of our source files are encoded in ANSI. So if I read these…
Enyra
  • 17,542
  • 12
  • 35
  • 44
38
votes
1 answer

Read and Write Text in ANSI format

Please have a look at the following code import java.io.*; public class CSVConverter { private File csvFile; private BufferedReader reader; private StringBuffer strBuffer; private BufferedWriter writer; int startNumber = 0; …
PeakGen
  • 21,894
  • 86
  • 261
  • 463
30
votes
6 answers

json_encode() non utf-8 strings?

So I have an array of strings, and all of the strings are using the system default ANSI encoding and were pulled from a SQL database. So there are 256 different possible character byte values (single byte encoding). Is there a way I can get…
Josh
  • 2,083
  • 5
  • 23
  • 28
25
votes
3 answers

Windows API ANSI functions and UTF-8

Is it possible to use Windows API ANSI functions with UTF-8 strings? For example, say I have a path encoded in UTF-8. Can I call CreateDirectoryA or CreateFileA and use a UTF-8 path, or do I have to perform some conversion before calling the…
krebstar
  • 3,956
  • 8
  • 46
  • 64
16
votes
3 answers

Python, Windows, Ansi - encoding, again

Hello there, even if i really tried... im stuck and somewhat desperate when it comes to Python, Windows, Ansi and character encoding. I need help, seriously... searching the web for the last few hours wasn't any help, it just drives me crazy. I'm…
xph
  • 937
  • 3
  • 8
  • 16
15
votes
3 answers

How can I get TStringList to sort differently in Delphi

I have a simple TStringList. I do a TStringList.Sort on it. Then I notice that the underscore "_" sorts before the capital letter "A". This was in contrast to a third party package that was sorting the same text and sorted _ after A. According to…
lkessler
  • 19,819
  • 36
  • 132
  • 203
14
votes
4 answers

Converting UTF8 to ANSI with Ruby

I have a Ruby script that generates a UTF8 CSV file remotely in a Linux machine and then transfers the file to a Windows machine thru SFTP. I then need to open this file with Excel, but Excel doesn't get UTF8, so I always need to open the file in a…
Dema
  • 6,867
  • 11
  • 40
  • 48
14
votes
1 answer

LoadStringFromFile and StringChangeEx from Unicode Inno Setup (Ansi file)

I'm trying to update one of my scripts to use the Unicode version of Inno Setup. Unfortunately I'm running into a problem where StringChangeEx is expecting to see a unicode String instead of the AnsiString that I need (mismatched type). Is there an…
user477276
  • 367
  • 5
  • 20
14
votes
3 answers

Is it possible to set ANSI encoding per application in windows

Windows localization has a dialog that that set a locale for all applications that do not support Unicode, it looks something like this on xp similar on other flavors of windows: Is there a way to specify this per app as apposed to globally for…
Dmitry
  • 1,513
  • 1
  • 15
  • 33
13
votes
2 answers

Decrypting DUKPT Encrypted Track Data

As the title says, I am trying to decrypt DUKPT encrypted track data coming from a DUKPT enabled scanner. I have the ANSI Standard (X9.24) for DUKPT and have successfully implemented the ability to generate the IPEK from the KSN and BDK.…
bdeetz
  • 185
  • 1
  • 1
  • 13
12
votes
4 answers

VB6/VBScript change file encoding to ansi

I am looking for a way to convert a textfile with UTF8 encoding to ANSI encoding. How can i go around and achieve this in Visual Basic (VB6) and or vbscript?
HerbalMart
  • 1,669
  • 3
  • 27
  • 50
11
votes
6 answers

How can a text file be converted from ANSI to UTF-8 with Delphi 7?

I written a program with Delphi 7 which searches *.srt files on a hard drive. This program lists the path and name of these files in a memo. Now I need convert these files from ANSI to UTF-8, but I haven't succeeded.
Yilmaz Ekici
10
votes
2 answers

Convert a file encoding using R? (ANSI to UTF-8)

I wish to convert an HTML file encoded in ANSI to UTF-8, using R. Is there a tool, or a combination of tools, that can make this work? Thanks. Edit: o.k, I've narrowed my problem to another one. It is re-posted here: Using "cat" to write…
Tal Galili
  • 24,605
  • 44
  • 129
  • 187
1
2 3
17 18