Re: How to use the GtkLabel to display Euro sign?
- From: Peter Krueger <pkrueger appss de>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to use the GtkLabel to display Euro sign?
- Date: Fri, 23 Apr 2004 15:47:27 +0200 (MEST)
On Fri, 23 Apr 2004, Tom Liu wrote:
I want to display Euro sign(char 163) in some place of program with
Dollar sign($), How can I do this?
Hello Tom!
Since GTK uses Pango for text handling it uses the UTF-8 codeset. So you
only have to set the appropriate UTF-8 sequence to the label:
"\xE2\x82\xAC".
Any text which contains non-ASCII characters (characters above (uchar)127)
has to be concerted to UTF-8 first. ASCII characters 0 ... 127 are a
subset of UTF-8, that's why they don't need an extra conversion.
Regards,
Peter
--
====================================================================
Peter Krüger
applied software solutions (appss) GmbH
Sandtorstr. 23
D-39106 Magdeburg
Germany
Phone: +49-(0)391-54486-19388
Fax: +49-(0)391-54486-19222
email: krueger appss de
URL: http://www.appss.de/
Managing Director: Uwe Hess, Dietmar Schäfer
Register: HRB12386, AG Magdeburg
"Virtual business becomes reality!"
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
====================================================================
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]