Re: Unicode file handling in Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux