ansi

Mysql connection in Ansi c

I am working in Ansi C, windows platform. I want to attach mysql database to my c program. Kindly guide me how I can make it possible. ...

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 the ANSI character set, A-Z are characters 65 - 90 and _ is 95. So it looks like the 3rd ...

Converting from ANSI to Unicode

Hi all, I'm using Visual Studio .NET 2003, and I'm trying to convert a program written in purely ANSI characters to be independent of Unicode/Multi-byte characters. The program has a callback function of pcap_loop, called "got_packet". It's defined as void got_packet(u_char *user, const struct pcap_pkthdr *header, const u_char *cpacke...

ANSI SQL - Delete all entries in a MxN relation with non-null FK constraints

I have two entities A and B that are related in a MxN relation through an intermediary table, thus making a total of three tables. My relation table R has non-nullable FK constraints on the other two tables. I want to delete all entries from tables A and B and R where A obeys some constraint (I can supply the ids in A table for instance...

Saving a Linq to Xml file as ANSI instead of UTF-8 in C# (Ivy)

In C#, I need to create XML files for use with Ivy and NAnt, but am having difficulty in getting the right encoding in the output file. If I use XElement's .Save("C:\foo.xml"), I get the correct looking file, but Ivy and/or NAnt gets upset, as the file is actually saved using UTF-8 but I actually need to save it as ANSI in order to be a...

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 Arabic letters to make appear. Is there such a thing? If not, how can the ANSI file show ...

Text editor/viewer with ANSI codes rendering support for Windows.

I need some tool to display text containing ANSI codes correctly on Windows. No full support needed, but at least coloring/bold is a must. Reason: My logger/debug module produce nicely rendered rich output with important sections colored using ANSI codes. This helps a lot when debugging on the serial terminal, but if I dump the debug to...

How to recognize ansi color escape codes in Windows7 64 bit command terminal

I have tried Ansicon and I still cannot get ansi escape sequences to become recognized and interpreted in my CMD.EXE command prompt on Windows 7 64 bit. Has anyone been able to work this correctly and get a colorized console with this OS? ...

 Appears at the beginning of my utf-8 text file when view as ANSI

I have a text file and it uses utf-8, but when the users view it in ANSI unknown characters appear at the very beginning. I am using C#. Thanks. ...

D (Tango) can read and write ANSI files ?

With D and Tango library can I read and write in the ANSI encoding ? ...

Monitoring Processes of Window OS using c language

I want to make an application in c or c++ which have to monitor some specific processes. Kindly guide me how I can make it possible in c. ...

Querying a table finding if child table's matching records exist in ANSI SQL

I have two tables A and B where there is one-to-many relationship. Now I want some records from A and with this existence field that shows if B has any matching records. I don't want to use the count function as B has too many records that delays SQL execution. Either I don't want to use proprietary keywords like rownum of Oracle like b...

How to get the Ansinerator library to work?

I'm trying to get the Ansinerator library to work my on my localhost, but something's amiss. I'm receiving the following errors: Notice: Undefined index: hash in ansi.php on line 23 Notice: Undefined index: aml in ansi.php on line 37 Notice: Undefined variable: PNG_DESTRUCT in ansi.php on line 119 Notice: Undefined offset: -1 in ansi.p...

Malloc inside another function (ANSI C)

Hi I'll go straight to it. I'm working on an assignment, where I suddenly ran into trouble. I have to allocate a struct from within another function, obviously using pointers. I've been staring at this problem for hours and tried in a million different ways to solve it. This is some sample code (very simplified): ... some_struct s; pr...

ZPL II Extended Characters

I'm trying to print extended code page 850 characters using ZPL II to a Zebra S4M. Whenever one of the extended characters I.E. ASCII value > 127 is used I get a box of varying shades of grey instead of the actual value. I'm trying to print ± and ° (ALT+0177 and ALT+0176). I suspect its the RawPrinterHelper I am trying to use (as down...

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 load well in viewers/editors). Is it is possible to make cmd.exe work with UTF-8? This qu...

Beginner problem / error with ansi-c and gcc under ubuntu.

Hi, I am just starting programming ansi c with gcc under ubuntu (9.04). I get following error messages: error messages: main.c:6: error: expected identifier or ‘(’ before ‘/’ token In file included from /usr/include/stdio.h:75, from main.c:9: /usr/include/libio.h:332: error: expected specifier-qualifier-list before ...

backspace character wiredness

i wonder why backspace character in common linux terminals does not actually erase the characters, when printed (which normally works when typed).. this works as expected: $ echo -e "abc\b\b\bxyz" xyz (\b evaluates to backspace, can be inserted also as ctrl-v ctrl-h - rendered as ^H (0x08)) but when there are less characters after t...

xterm slave mode

can xterm can be used to process ANSI escape sequences and output the resulting text into a file? i mean e.g. like this: $ echo -e "\e[31mfoo\e[0m" | xterm -SOME_NICE_OPTION foo xterm has a slave mode, but i'm not sure whether it can be used to this type of task. echo "foo" | xterm -S120 writes "foo" into xterm window i have play...

QueryString encoding of non-ANSI characters in ASP.Net

I'm passing "Malmö" as a Request.QueryString parameter to a page. However, the code sees it as "Malm�" meaning that string comparison fails. All globalization settings are set to UTF-8 in web.config. Am I missing something? Edit: The querystring looks like this http://localhost/PageName/?courseKommun=Malm%F6 ...