Special characters program
What the program actually does is that it searches an input file containing special characters contained in some words(i.e Ã , * and #352; ) .After finding such words it replaces those characters with this (i.e \o^ , \e^ and \sh respectively).I hope you will have the picture now.
Deal with input or check whether input has the following special characters, i.e. read a file of text containing a list of words and check for the occurrence of these characters:
Ã or Ã´ * as used in the word "pÃ´Ã´"
* or * - as used in the word "r*ma"
#352; or #353; - as used in the word "le#353;a#353;a"
If a word has any of these character replace each character by the
following characters respectively:
Ã´ with \o^
* with \e^
#353; with \sh
I would appreciate it if you could could have a short program to sort
this issue out.
Let me say that it should be like this:
input -> words.doc
pÃ´Ã´ r*ma le#353;a#353;a aÃ´wÃ´ b*thÃ´
output -> c:\output.txt
p\o^\o^ r\e^ma le\sh;a\sh;a a\o^w\o^ b\e^th\o^
Yes the text file is ASCII format(that "#352;" represent an S with a cap on top).It is Northern Sotho language(South African language)