xlog-discussion
[Top][All Lists]
Advanced

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

Re: [Xlog-discussion] xlog 0.8 and 0.9 not compatible (UTF-8)


From: Joop Stakenborg
Subject: Re: [Xlog-discussion] xlog 0.8 and 0.9 not compatible (UTF-8)
Date: Fri, 30 May 2003 10:52:50 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030527 Debian/1.3.1-2

Tomi Manninen wrote:

How about checking the UTF8 validity at read and converting if necessary?
Something like

  if (g_utf8_validate() == FALSE)
        g_locale_to_utf8();

Or if you want to keep the logs in national character sets then simply do a g_locale_from_utf8() when writing and g_locale_to_utf8() when reading the logs.


[...]

Thanks Tomi,

I have no experience with the utf8 part of glib, but it sounds like a good idea for the next release.

Regards,
Joop





reply via email to

[Prev in Thread] Current Thread [Next in Thread]