Re: UTF-8 characters

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

 



On Fri, Jul 18, 2003 at 10:41:59AM +0530, Viveka Nathan K wrote:
     Hi all.
       I am using the function g_utf8_get_char() to read Unicode values from
     a text file. The strings are
     fetched by using fscanf() function. It fetches upto SPACE or NEWLINE.
     But both these characters
     are returned as NULL. How can I fetch the SPACE as SPACE and NEWLINE as
     NEWLINE ?

As I understand it, that's what scanf is supposed to do.  Unicode or
no unicode.  If you want everything to be interpreted literally, then
why not use fgets ??


J'

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://wwwkeys.pgp.net or any PGP keyserver for public key.


Attachment: pgp00011.pgp
Description: PGP signature


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux