Hi Rich Thanks for your attention. I do use UTF-8 but the files I am dealing with are encoded using a strange encoding system, I used iconv to convert them into UTF-8. By the way, another question, if all those stdio.h and string.hfunctions, work well with UTF-8 strings, as they actually do, what would be the reason to use wchar_t and wchar_t-aware functions?
Best Regards Ali On 4/17/07, Rich Felker <[EMAIL PROTECTED]> wrote:
On Tue, Apr 17, 2007 at 08:47:19AM +0000, Ali Majdzadeh wrote: > The program does not print the line read from the file to stdout (some junks > are printed). I also used "cat ./persian.txt | iconv -t utf-8 > in.txt" to > produce a UTF-8 oriented file. If your native encoding is not UTF-8 then of course sending UTF-8 to stdout is not going to result in something directly legible. I was assuming you were using UTF-8 everywhere, which you should be doing on any modern unix system... Rich -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
