Hello.
Try `konwert':
Code:
cat file | konwert any/ru-koi8r | less
This is for Russian language and koi8-r codepage. You can detect the codepage of your text by using smth like this:
Code:
cat file | konwert any/ru-test
`any' means any codepage, `ru' means Russian.
From manpage:
Code:
Currently supported languages are cs (Czech), de (German),
el (Greek), eo (Esperanto), es (Spanish), fr (French),
he (Hebrew), it(Italian), pl (Polish), pt (Portuguese),
ru (Russian),and sv (Swedish).
Konwert uses statistical analysis for codepage detection.
Hope this is useful. Bye.
P.S.: I don't know is there a C language API to konwert's functionality (iconv have such API). I think, no.