cancel
Showing results for 
Search instead for 
Did you mean: 

Add ASCII characters to text file

Former Member
0 Kudos

Dear Friends,

I have a requirement of adding ASCII characters ASCII code 31 (&1F# Hex) and NULL character (ASCII code 0 , &0# Hex) in my text file.

Can you people suggest how to do it, as only these characters are ASCII.

Thanks.

Sumeet.

Accepted Solutions (0)

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

if you use

int asciicode31 = 31;

int asciinull = 0;

System.out.println(asciicode31 + ": " + (char)asciicode31);

System.out.println(asciinull + ": " + (char)asciinull);

ideally it should print you the characters you are looking for.

So use this logic in your mapping.

Former Member
0 Kudos

Thanks for reply.. Shabarish.

You mean to say that i need to use UDF in message mapping?

Thanks.

Sumeet.