Hi,
I have written a program in C to copy data from input file to output file and is works. Now I want to replace some data from input file before the data will be written to output file. see piece of code bellow
[CODE]
if (i == '¿')
{
i = ('z');
}
else if (i == '³')
{
i = ('l');
}
else if (i == 'œ')
{
i = ('s');
}
[/CODE}
and so on. unfortunately it is not works.
Do you have any idea why the program do not recognize the strange signs from input text file? I tried change for example a to A or s to 4 and it works perfect.
or maybe you have other way to replace the strange symbols.
many thanks for help.
Kris
I have written a program in C to copy data from input file to output file and is works. Now I want to replace some data from input file before the data will be written to output file. see piece of code bellow
[CODE]
if (i == '¿')
{
i = ('z');
}
else if (i == '³')
{
i = ('l');
}
else if (i == 'œ')
{
i = ('s');
}
[/CODE}
and so on. unfortunately it is not works.
Do you have any idea why the program do not recognize the strange signs from input text file? I tried change for example a to A or s to 4 and it works perfect.
or maybe you have other way to replace the strange symbols.
many thanks for help.
Kris
Comment