Decimal value for special character

I am seeing an special character in my file
when i do the

 
cat filename | od-bc

I see a value of 376 for that special character.
I would like to find the decimal value for the character.

For example the decimal value for ctrl-Y is char(25).
Appreciate help on this.

 
Ÿ

Sorry i think i did not make my question clear.

I want the command to look for the decimal value of any character in file.

It is decimal 254.

Read the od man page for further information about the various output formats.

I know the values for

I am tring to achieve this in unix but could not get.

I tried various commands after reading man page.
some of them are:

 

UnixServer:/home/user $ echo "A" | od -s
0000000   16650
0000002
UnixServer:/home/user $ echo "A" | od -i
0000000   16650
0000002
UnixServer:/home/user $ echo "A" | od -L
0000000   1091174400
0000002
UnixServer:/home/user $ echo "A" | od -d
0000000  16650
0000002
UnixServer:/home/user $ echo "A" | od -D
0000000  1091174400
0000002

Help is appreciated for the command to convert to decimal.

var="a";printf "%d", "${var}"

 
perl -le 'print chr(376)'

Doesn't seem to work

Here is the output:

Was expecting 65 as output

Hi.

I suggest:

ascii o376
ASCII 15/14 is decimal 254, hex fe, octal 376, bits 11111110: meta-~

See man ascii for details ... cheers, drl

My main problem is this special character "�" in file.

I dont know what it is.

I am trying to find the decimal value for this. So that i can convert this special character to new line character in DataStage.

DataStage only like Decimal values for special characters.

For example : For CTRL-Y datastage reads it as char(25)

Help on this is appreciated.

Posters fpmurphy and drl have already told you the answer to that...but for some reason you havent taken the time to read their posts. The decimal value of 376 is 254 and take sometime to become familiar with base conversions otherwise you will get stuck again somewhere.

Thank You i read those post but did not understand them earlier.

Sorry about that.

Will read base conversion.