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
0
votes
0 answers

Read ansi file (persian language) file from internet and show that in textbox

I create a text file with ANSI format and write persian word in that, now I read that with this code: System.Net.WebClient wc = new System.Net.WebClient(); string textBoxNewsRight2Left =…
0
votes
1 answer

ByteViewer Control in Winform, get ANSI value of the given input

There is a ByteViewer Control directly available in the .NET Framework. How do I get the data in a ANSI format from this control and assign to a string variable? My input will be in hexadecimal form.
user3252328
0
votes
1 answer

Trash in my python file

I am making a script in Python to take some scripts and put them in a determined size (37 in this case), adding some white spaces if necessary. I finished it and I thought it worked pretty well but then I saw that changing the encodings from Ansi to…
0
votes
1 answer

My JAVA code save a .txt in a different encoding (ANSI, UTF, ...) depending of the operating system

I am trying to save a .txt file since a JAVA code, in a Windows 7 machine, and it encodes the code in ANSI, but when I do the same in a Windows Server 2000 the code is saved in UTF. I am doing different testings and I checked that the encoding is…
0
votes
1 answer

ASP ANSI Conversion for Unicode Based Text File

I have these ASP script for cache fn = "caches/"&md5(url)&".html" // Grab HTML file from site set oXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP.3.0") oXMLHTTP.Open "GET", url, false oXMLHTTP.Send // Save it set fs =…
Digerkam
  • 1,826
  • 4
  • 24
  • 39
0
votes
0 answers

asp.net read ANSI non-English text file gives gibberish (how to convert to Unicode / UTF-8)

I have a simple webform application with a label and a button. Clicking the button makes the C# code behind read a text file and display it in the label. Works fine when all text in the text file is English, but all Hebrew characters are being…
gadi
  • 481
  • 3
  • 14
  • 32
0
votes
1 answer

How to specify encoding while creating file?

I am using an R script to create and append a file. But I need the file to be saved in ANSI encoding,even though some characters are in Unicode format. How to ensure ANSI encoding? newfile='\home\user\abc.ttl' file.create(newfile) text3 <-…
lost Coder
  • 577
  • 2
  • 8
  • 34
0
votes
5 answers

What could go wrong if I convert ANSI encoded files to UTF-8?

I have an existing ASP.NET 2.0 website, stored in Team Foundation Server 2005. Some of the pages/controls are encoded as ANSI (according to Notepad++) and the Content-Type header is set to:
Tom Robinson
  • 8,348
  • 9
  • 58
  • 102
0
votes
1 answer

Fixing file encoding

Today I ordered a translation for 7 different languages, and 4 of them appear to be great, but when I opened the other 3, namely Greek, Russian, and Korean, the text that was there wasn't related to any language at all. It looked like a bunch of…
Liftoff
  • 24,717
  • 13
  • 66
  • 119
0
votes
2 answers

ANSI vs UTF-8 in web Browser

My requirement is to allow users to use(type) ANSI characters instead of utf-8 when they are typing in to the text fields of my webpages. I looked at the setting of the character set in html meta tag That was helpful…
Hiran
  • 698
  • 1
  • 10
  • 29
0
votes
1 answer

How to escape/ translate Encoding/chars via Regex and XSLT?

I need some help on how to actually fix these encoding being outputted as special characters in an xml.I'm trying to execute a powershell script to create a certificate using a platform via an SSH connection on a server and the expected response…
EdgyIT
  • 171
  • 2
  • 9
0
votes
3 answers

Converting ANSI to UTF8 with Ruby

I have a Ruby script that generates an ANSI file. I want to convert the file to UTF8. What's the easiest way to do it?
HelloWorld
  • 7,156
  • 6
  • 39
  • 36
0
votes
1 answer

Printing ANSI/UNICODE special chars in Python

I've been Googling this for 30mins but couldn't find an answer. How can I print these characters myself? (I want to avoid using curses etc.)
Juicy
  • 11,840
  • 35
  • 123
  • 212
0
votes
1 answer

Convert Unicode to ANSI or UTF8 in python

I am using Python 2.7.8 and I have a script which does parsing: def parse(): with open('myfile.txt') as f: . . . Print l myfile.txt has a UNICODE coding. How can I add a code to this script so that it reads the myfile.txt as ANSI for example?
B A
  • 69
  • 1
  • 8
0
votes
1 answer

XmlException Invalid character in the given encoding

Hello I searched the internet this exception, I have not found solution so I decided to ask. in a console application I need to search a folder a certain number of xml files. such file is encoded in ANSI.   what the application does is to take…
user3357141
  • 199
  • 1
  • 3
  • 16