How to remove "Þ" and "Ý"?

Hello All
Please help me with the problem included in subject.
I need to replace all occurences of "�" with S and all "�" with I in VI editor.
Your responses will be appreciated

Thanks.

In vi:

:%s/�/S/g

The same goes for the other character...

Thanks. Actualy problem is to find key combination that inserts those special char in vi..

Why can't you just use one of your magic spells, Aleister?

Sorry, couldn't resist. :wink:

Use od or hexdump to determine the byte values. If they are encoded with a single byte, then you can use tr to change them. If it's a multibyte sequence, you can use AWK.

Regards,
Alister

Assuming an extended ASCII character set only - not UNICODE...

...as a guess it looks like the first is decimal 222, (0xDE), and the second decimal 221, (0xDD) .

"hexdump" will prove the point.

can't you copy/paste the character itself??

Could you please also tell me about the usage?
Should I insert decimal values?
A sample command will be Ok.

---------- Post updated at 10:54 AM ---------- Previous update was at 10:52 AM ----------

Copy/paste just brings "^" char...:frowning:

This is a starter and might help you...

A possibility for UNICODE is that in this particular case each character has two bytes:-

C39E and C39D respectively

But again I am guessing...

hexdump -C /full/path/to/your/file

Should show it/them...

Due to the difficulty in reading them they could also be decimal 254, (0xFE), and decimal 253, (0xFD) too with a corresponding daul byte UNICODE equivalent so be aware.