after converting my ebcidic file to ascii i get the following output
2097152+0 records in
1797345+1 records out
Why is there a difference in number of records.
Is the converson chopping off any records.
All i am doing is just a conversion using the following script
dd if=xaa cbs=152 ... (0 Replies)
I have a file say "codefile" here ,contains data like this
Hi! How are you?
I need to covert this data into stram of equivalant ASCII values
I wrote follwoing script.
#!/bin/bash
while read -n1 char
do
printf "%d" \'$char
done < codefile
this gives me output
... (4 Replies)
Hi,
Can anyone please help me ascci to decimal conversion in bash
I have a file which contains stream of numbers like this,these are ascci values
729711810132973278105991013268971213233
I want to covert it to its actual value like upper code's decimal is
"Have a Nice Day!"
... (15 Replies)
Hi,
I have got a library file, created by compiling C code. The file information with "file" command, gives it a "application/x-archive" type file. I want to extract the release string of my software from this file, so that i can know which version of C files were used to create the lib.
Can... (3 Replies)
I Am trying to change the file encoding from ASCII to UTF-8 using below command
iconv -f ASCII -t UTF-8 <input_file> > <output_file>
But the output_file is not actually in UTF-8 format. If I use the file command to check the file encoding it still says ASCII.
While converting am not... (5 Replies)
Hi,
We have a mainframe file which is in EBCDIC format.We dont have direct access to mainframe ,client has provided us the mainframe file.The mainframe file is containing pact data(COMP1 ,COMP2 etc) which are unreadble.Can anyone suggest me how to convert this kind of ebcdic file to ascii... (11 Replies)
Discussion started by: swapna_1990
11 Replies
LEARN ABOUT MOJAVE
uconvert
uconvert(3alleg4) Allegro manual uconvert(3alleg4)NAME
uconvert - High level string encoding conversion wrapper. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
char *uconvert(const char *s, int type, char *buf, int newtype, int size);
DESCRIPTION
Higher level function running on top of do_uconvert(). This function converts the specified string `s' from `type' to `newtype', storing at
most `size' bytes into the output `buf' (including the terminating null character), but it checks before doing the conversion, and doesn't
bother if the string formats are already the same (either both types are equal, or one is ASCII, the other is UTF-8, and the string con-
tains only 7-bit ASCII characters).
As a convenience, if `buf' is NULL it will convert the string into an internal static buffer and the `size' parameter will be ignored. You
should be wary of using this feature, though, because that buffer will be overwritten the next time this routine is called, so don't expect
the data to persist across any other library calls. The static buffer may hold less than 1024 characters, so you won't be able to convert
large chunks of text. Example:
char *p = uconvert(input_string, U_CURRENT, buffer, U_ASCII, 256);
RETURN VALUE
Returns a pointer to `buf' (or the static buffer if you used NULL) if a conversion was performed. Otherwise returns a copy of `s'. In any
cases, you should use the return value rather than assuming that the string will always be moved to `buf'.
SEE ALSO set_uformat(3alleg4), need_uconvert(3alleg4), uconvert(3alleg4), uconvert_ascii(3alleg4), uconvert_toascii(3alleg4), do_uconvert(3alleg4)Allegro version 4.4.2 uconvert(3alleg4)