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
10
votes
1 answer

What's the difference of ANSI Smalltalk and Smalltalk-80?

I discovered there is no mentioning about thisContext in ANSI Smalltalk specification (draft). I assumed ANSI Smalltalk as standardized Smalltalk-80, so I can't understand why it's not there. What's the difference of them?
eonil
  • 83,476
  • 81
  • 317
  • 516
9
votes
5 answers

How to convert ansi text to utf8

How to convert ansi text to utf8 in Go? I am trying to convert ansi string to utf8 string.
pynet
  • 99
  • 1
  • 1
  • 2
9
votes
7 answers

Converting problem ANSI to UTF8 C#

I have a problem with converting a text file from ANSI to UTF8 in c#. I try to display the results in a browser. So I have a this text file with many accent character in it. Its encoded in ANSI, so I have to convert it to utf8 because in the browser…
JahManCan
  • 601
  • 3
  • 8
  • 19
9
votes
2 answers

How to do proper Unicode and ANSI output redirection on cmd.exe?

If you are doing automation on windows and you are redirecting the output of different commands (internal cmd.exe or external, you'll discover that your log files contains combined Unicode and ANSI output (meaning that they are invalid and will not…
sorin
  • 161,544
  • 178
  • 535
  • 806
9
votes
3 answers

PHP: Converting UTF-8 string to Ansi?

I build a csv string from values I have in my DB. The final string is stored in my $csv variable. Now I offer this string for download, like this: header("Content-type: text/csv"); header("Content-Disposition: attachment;…
user1856596
  • 7,027
  • 10
  • 41
  • 63
7
votes
3 answers

Read ansi file and convert to UTF-8 string

Is there any way to do that with PHP? The data to be inserted looks fine when I print it out. But when I insert it in the database the field becomes empty.
user192344
  • 1,274
  • 6
  • 22
  • 36
7
votes
1 answer

How to force Notepad++ to open files only in UTF-8?

I have a file with the following code: print "Hello World". In Encoding section (Notepad++ Menu), Encode in UTF-8 is chosen. I close the file, and open it again: nothing has been changed. Perfect. I add some Unicode character, so the code now is:…
A. Eaxon
  • 157
  • 2
  • 7
7
votes
1 answer

JavaScript blob encoding as UTF-8 instead of ANSI

I use a JavaScript blob to create an FDF file which opens & fills in a locally stored PDF. However, the file path to the locally stored PDF contains an accented character (and I am unable to edit the folder name). This code works when the folder…
ThanosLovesYuna
  • 87
  • 1
  • 1
  • 8
7
votes
3 answers

How can I change a huge text file from ANSI to UTF-8?

I have a text file whose size is 1.3 GB. Most of text editors (including NotePad++) cannot open it. I need to change its format from ANSI to UTF-8. In what program can I do this?
user1448393
  • 115
  • 1
  • 11
6
votes
1 answer

Change Javascript BLOB encoding to ANSI instead of UTF-8

I was wondering if it is possible to save a simple txt file with Javascript and BLOB with the ANSI encoding. At this moment I have a script that creates a txt file with CRLF line endings, but with a UTF-8 encoding. Is it possible to save it with the…
6
votes
3 answers

PHP - How to save text file with ANSI encoding?

I'm doing: file_put_contents("txt/myfile.txt", $fileContents); I have tried many ways to force my text file to be ANSI, like: $fileContents = mb_convert_encoding($fileContents , mb_detect_encoding($fileContents , mb_detect_order(), true),…
DuckN'Bear
  • 365
  • 1
  • 4
  • 19
6
votes
1 answer

C# UNICODE to ANSI conversion

I need your help concerning something which disturbs me when working with UNICODE encoding in .NET Framework ... I have to interface with some customer data systems with are non-UNICODE applications, and those customers have worldwide companies…
alex
  • 73
  • 1
  • 1
  • 3
6
votes
2 answers

how to write with a single byte character encoding?

I have a webservice that returns the config file to a low level hardware device. The manufacturer of this device tells me he only supports single byte charactersets for this config file. On this wiki page I found out that the following should be…
Sjors Miltenburg
  • 2,540
  • 4
  • 33
  • 60
6
votes
2 answers

Widestring to string conversion in Delphi 7

my app is a non-unicode app written in Delphi 7. I'd like to convert unicode strings to ANSI with this function : function convertU(ws : widestring) : string; begin result := string(ws); end; I use also this code to set the right codepage to…
user382591
  • 1,320
  • 5
  • 19
  • 39
5
votes
1 answer

How do you convert encoding from UTF-8 to windows-1252?

How can I correctly convert a text file from UTF-8 to Windows-1252? I have tried converting the file using iconv (windows xp) but this util converted the text file to ANSI. The default code page in my Windows is Windows-1251 and so I can`t correctly…
savva
  • 51
  • 1
  • 1
  • 2
1
2
3
17 18