Mail from ILUG-BOM list (Non-Digest Mode)
hi,
i do not know if the Platforms like Win solaris..support unicode.
i do not know if i am correct but Unicode became widely used when Java
started to gain in popularity...so might be that altough the platforms do
not support Unicode the Java Virtual Machine which is supported by many
applications eg browsers use unicode character set....
and maybe that the JVM then interacts with the OS in some way because Jvm
works on top of an OS.
i think that fgetc() with unicode will consume 2 bytes.Unicode is 65536
characters while ascii is only 256.so the alignment has to be word wide.
however Java has a separate data type known as byte...so u can use the old
ascii using byte instead of char.
nikhil
>From: "Manish Jethani" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "Ilug-Bom" <[EMAIL PROTECTED]>
>Subject: [ILUG-BOM] fgetc() with UNICODE???
>Date: Sun, 2 Jul 2000 00:38:44 +0530
>
>Mail from ILUG-BOM list (Non-Digest Mode)
>
>
>In C,
>
>fgetc reads a char from the file. Now /char/ is a byte, right?
>So I could be reading a binary file w/o losing any data, right?
>
>What about UNICODE? If UNICODE has characters as 2 bytes, would
>fgetc() be able to read chars as 2 bytes or 1 byte?
>
>If 1 byte, then I might have to combine 2 read bytes to get the
>correct char?
>
>Is UNICODE supported on current platforms (Windows, Linux,
>Solaris)? Do we have UNICODE files on our PCs. How would I know
>if a file is UNICODE or ASCII (while reading it with fgetc())?
>
>Thanks.
>
>--
>Manish Jethani
>
>
>
>_______________________________________________
>Linuxers mailing list
>[EMAIL PROTECTED]
>http://ilug-bom.org.in/mailman/listinfo/linuxers
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
_______________________________________________
Linuxers mailing list
[EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers