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
5
votes
3 answers

Javascript Convert ansi to utf8

i'm trying with this plugin jquery.csvToTable to show data from csv to web page , cvs file has encoding ansi with Japanese text , but webpage has encoding utf8 , and js is not working with ansi , how is possible to convert or if exist another method…
mIRU
  • 617
  • 3
  • 14
  • 32
5
votes
2 answers

Connect Excel to PostgreSQL via ODBC

I am trying to connect to a PostgreSQL database table from Excel via the PostgreSQL ODBC 32-bit driver. In Excel, I go to Data>Get Data> From Other Sources> From ODBC. I navigate to the ODBC data source I set up, enter the credentials, and it…
bneelon
  • 97
  • 2
  • 9
5
votes
2 answers

Convert encoding of a text file from utf-8 to ansi or unicode in python

I have a text file with utf-8 encoding. I want to change it's unicode to ANSI or unicode automatically in python. Is it possible? How can i do it?
narges
  • 681
  • 2
  • 7
  • 26
5
votes
1 answer

Reading file in Ansi and Unicode encoding in Inno Setup

I have a function called GetServerName. I need to pass the file name (say for example 'test.txt') as well as a needed section string (say for example 'server') The test.txt file is contains something like this data1 | abcd data2 | efgh server|…
RobinAtTech
  • 1,299
  • 3
  • 22
  • 48
5
votes
3 answers

Advice about forming Hackers Club

I'm thinking of forming a Hackers Club at work. My idea is that we would meet monthly and at each meeting one member would present an interesting hack he had created. (The hacks presented wouldn't necessarily have to be software hacks; they could…
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
5
votes
1 answer

Using {AppVersion} as a parameter for a function in Inno Setup

So I have a function that is updating some XML and I would like to pass the {AppVersion} that has been set in the [Setup] part of the script as a constant to this function I have tried MyFunction(ExpandConstants({AppVersion}) But this gives me an…
JKennedy
  • 18,150
  • 17
  • 114
  • 198
5
votes
6 answers

How to make a text file have more than one encoding?

I have a file which is ANSI encoded. However it shows Arabic letters inside it. this text file was generated by some program (I have no info on) but it seems like there is some kind of internal encoding (if I might say and if it's possible) for the…
M. A. Kishawy
  • 5,001
  • 11
  • 47
  • 72
4
votes
1 answer

Why this function has both Unicode and ANSI versions?

Why does EndUpdateResource have both Unicode and ANSI versions?
user541686
  • 205,094
  • 128
  • 528
  • 886
4
votes
4 answers

at all times text encoded in UTF-8 will never give us more than a +50% file size of the same text encoded in UTF-16. true / false?

Somewhere I read (rephrased): If we compare a UTF-8 encoded file VS a UTF-16 encoded file, At some times, the UTF-8 file may give a 50% to 100% larger file size Am I right to say that the article is wrong because at all times, text encoded in…
Pacerier
  • 86,231
  • 106
  • 366
  • 634
4
votes
2 answers

How to simply list all files of a folder using dir to text with UTF-8 encoding?

Simple question: On Windows 10, I found a quick and dirty solution to save the names of all the files in a folder by just simply: Creating a text file Type and save dir > 1.txt within it Rename the .txt file to .bat Run it. Done. But, the text…
4
votes
1 answer

Is there a way to check a file encoding using JavaScript?

Here's my case: I'm working with a very big project that contains lots of files. Some of these files are encoded in UTF-8, other in ANSI. We need to convert all the files to UTF-8, because we decided this will be the default in our next…
bitlamas
  • 742
  • 1
  • 8
  • 19
4
votes
2 answers

How to convert form UTF-8 to Latin/Arabic and vice versa?

Is there a cross-platform way to convert from UTF-8 to Latin/Arabic and from Latin/Arabicto UTF-8 in C++?
Abdelwahed
  • 1,694
  • 4
  • 21
  • 31
4
votes
1 answer

Ansible Azure Modules

I'm trying to use the Azure modules for Ansible on Red Hat. I followed the official documentation for Ansible installation on site. While executing the Ansible playbook I ran into below problem. Failed to import the required Python library…
Manpreet
  • 119
  • 2
  • 8
4
votes
1 answer

Strawberry Perl not recognising special variable for OSNAME

I recently upgraded Strawberry Perl from version 5.14.1.1-32bit to 5.24.0-64bit on my PC running Windows 7. I have a perl script I run under both Windows and Linux, and when I was using the old version the command use if $^O eq 'MSWin32' ,…
Leslie
  • 618
  • 4
  • 14
4
votes
1 answer

Strange behaviour with DrawTextA, Courier New and Japanese locale

I found some strange behaviour when using DrawTextA in combination with the Courier New-font with a Japanese locale. Consider the following Delphi XE2 code: procedure PaintTexts(aPaintBox: TPaintBox; aCharset: Byte); var A: AnsiString; S:…
R. Beiboer
  • 712
  • 9
  • 21
1 2
3
17 18