how to read null terminated UTF16 string
- From: "Kuang-Chun Cheng" <kcc1967 gmail com>
- To: gtk-list <gtk-list gnome org>
- Subject: how to read null terminated UTF16 string
- Date: Wed, 14 Nov 2007 12:39:56 +0800
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]