how to read null terminated UTF16 string

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

 



Hi,

I'm try to read WinXP's event log file (C:\Windows\System32\Config\SysEvent.Evt)
which contains some null teminated string (it's UTF16 encoding).
Any call in glib can handle this ?  Or do I need to read it char by char
and use g_utf16_to_utf8() to convert them one by one untill null char
is reached.

Similar question, how to read a UTF16 encoding file one line at a time ?

A working demo program is appreciated.  Thanks a lot.

Regards
KC
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

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

  Powered by Linux