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

Read ANSI file with polish letters and show in console without Accents

I have this line "ĆćĘ꣏źł" in file.csv, which is encoded (as Notepad++ shows) as ANSI. How can I correctly show this line in console like CcEeLzzl. For removing accents I'm using StringUtils.stripAccents(myLine) from apache but still got…
2
votes
1 answer

SSIS data conversion (from unicode to ANSI) returned status value 4

I have the following problem: I have an SSIS package that starts with a query executed at an Oracle DB and I would like to export a Fixed Width flat file with ANSI 1253 Code Page. I get an error: The data conversion for column [column_name]…
1131
  • 407
  • 3
  • 15
2
votes
1 answer

wchar_t to unsigned char conversion

I have a code that implements the following: unsigned char charStr; //this var can only take a value either 0, 1, or 2 WCHAR wcharStr; ... charStr = wcharStr - '0'; ... I am aware of the fact that you might lose some data (from 16-bit to 8-bit)…
ekremer
  • 311
  • 4
  • 23
2
votes
0 answers

convert csv file from UTF-8 to ANSI encoding

I am getting data from a db table which was in array. So i am using the below code to write that data into csv . in the array we will have some data related to utf-8. But i need the file encoding type should be ANSI. Because the other side system…
user3408779
  • 981
  • 2
  • 19
  • 43
2
votes
2 answers

Create ANSI text file using vbscript

I must create a text file with ANSI encoding using vbs. If I just create it, without to write any text, using this code... Set objFSO = CreateObject("Scripting.FileSystemObject") Set ObjFileTxt = objFSO.objFSO.CreateTextFile("filename.txt", True,…
2
votes
1 answer

C# EXE w/ Unmanaged C++ Unicode DLL linking to unmanaged C++ ANSI DLL crash

I have a C# executable which loads in a DLL which is a unicode unmanaged C++ DLL. This unmanaged C++ DLL also links to another DLL, an unmanaged C++ DLL that happens to be ANSI. When I run my C# executable, the program ends up crashing in the ANSI…
RootAtShell
  • 115
  • 1
  • 7
2
votes
2 answers

Converting ANSI to UTF-8 with Python Script in Notepad++ - unicode name issues

I am using this script that was written by Jun Murakami to convert the encode of .srt files (movie subtitles) from ANSI to UTF-8 and it is doing great and works perfect for me but there is problem. I have folders which have Unicode characters in…
2
votes
1 answer

Node.js write raw image data

I'm writing a node.js server, and for part of the site, the user needs to be able to upload an image. When an image is uploaded, it's copy on the server is corrupt. Here's the script for the body parser. request.body = {}; var busboy = new…
2
votes
2 answers

Difference between explicitly using Unicode/ANSI Windows APIs and letting them be handled by aliases?

What's the difference between me explicitly defining every Win32 API I use in my project as W (Wide) or A (ANSI) and letting it be decided by the solution/project configuration? Apart by being able to change it on the fly, that is. Say I only need…
Banderi
  • 656
  • 3
  • 7
  • 29
2
votes
3 answers

how I'm able to store a japanese character in 1 byte normal string?

std::string str1="いい"; std::string str2="الحانةالريفية"; WriteToLog(str1.size()); WriteToLog(str2.size()); I get "2,13" in my log file which is the exact number of characters in those strings. But how the japanese and arabic characters fit…
mani
  • 21
  • 3
2
votes
0 answers

official test suite for PL/I like for Cobol 85?

Could anybody point me to an official test suite for PL/I ? as PL/I is an ANSI standard, I was hoping to find such a suite but I'm unsuccessful in my search until now. Ideal would be to find a suite like the test suite for COBOL85 test suite…
Didier Durand
  • 627
  • 7
  • 16
2
votes
3 answers

Character Encoding

My text editor allows me to code in several different character formats Ansi, UTF-8, UTF-8(No BOM), UTF-16LE, and UTF-16BE. What is the difference between them? What is commonly regarded as the best format (I'm using Python if that makes a…
rectangletangle
  • 50,393
  • 94
  • 205
  • 275
2
votes
1 answer

PInvoke on SafeArray of AnsiBStr

I have an old C++ DLL exporting functions with ASCII string output arguments. I managed to use the first one like this : [DllImport("MyLibrary.dll")] private static extern int GetVersion( [Out, MarshalAs(UnmanagedType.AnsiBStr)] out string…
Tolokoban
  • 2,297
  • 14
  • 17
2
votes
1 answer

VBS Scripting.FileSystemObject Need help writing ANSI txt File

I am trying to create an ANSI file. But everything I try gives me an UTF-8 w/o BOM. I have tried to do this with the least amount of code for testing purpose and this is what I found. Dim myFile Dim objFSO : Set…
Hydrogen-4
  • 187
  • 1
  • 1
  • 15
2
votes
1 answer

how to create a UTF-8 encoded .xml file in vba excel?

i want to create a UTF-8 encoded .xml file in vba macro. i know how to create .xml file but its default encode is ANSI. i want to change it to UTF-8 and of course, not manually, and I confuse which code to use to create text file because i know two…
squall leonhart
  • 301
  • 1
  • 5
  • 16