On Tue, 2003-08-12 at 01:32, Muthu_T@xxxxxxxx wrote: > All, > > How can I create/write/read the various > Unicode files(like UTF16-LE, UTF8, UTF16-BE) > In Advanced Server 2.1 or RH 8.x/9.x? > > When I write a binary file using fputws(), the letter 'A' should be > added > As '00 41', but it only adds '41' when we see the file via hexdump. > that is utf8. utf8 encodes Unicode in such a way that if the character is ascii (that is, lower than 127), it will take just one byte. That makes it copmpatible an not dissrupting of currently used stuff like scripts and such. If the character is not ascii (i.e. other language) it will grow in size. You seem to be thinking of a plain implementation of unicode. If you want 16 bit wide characters you need to convert utf8 into another encoding. Now I know that much only, but you could check on iconv/libc's man/info page for more info. -- Psyche-list mailing list Psyche-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/psyche-list