Re: [gtkmm] Set a unicode string as the label of button



On Mon, 2004-01-19 at 17:39, L Yang wrote:
Dear all,
  I have a txt file, coded with unicode
(MS WORD told me it's Unicode, but not Unicode UTF-7 or 8 or Big-Endian.
gedit told me it's Unicode UTF-16)
How to search "<!" in it and how to make it the caption or label of a button
(I am using set_label() from gtkmm and glib::ustring seems doesn't work
and I'm working with dev-c++ under windows)
or even better, could you give me a hint or help to parse this txt file?
it's orgnized like XML format:
<RECORD>
  <FIRST NAME>Lingyun<FIRST NAME>
  <LAST NAME>Yang</LAST NAME>
</RECORD>
<RECORD>
.....
</RECORD>
     
Thank you in advance!

Use the iconv command to transcode the file to UTF-8 and the use standard XML parsing techniques.

HTH,
Tassos

-- 
Beware of he who would deny you access to information, for in his
heart he dreams himself your master." 
	-- Commissioner Pravin Lal, Sid Meier's Alpha Centauri


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