Re: Gtk-CRITICAL in GUI gpsim
"Nestor A. Marchesini" <[email protected]> Wed, 06 Dec 2006 21:05:27 -0300
| Newsgroups | gmane.comp.hardware.microcontrollers.gnupic |
|---|---|
| Organization | DES Electronica |
| Message-ID | <[email protected]> |
Whereas in commentaries it is not a problem to use characters UTF-8 it is not possible to use characters that know that they have two bytes in UTF-8 together with the nemónicos.. My problem was on having tried to use: movlw A'Ã' xorwf ReceiveRS232,W skpnz goto AreEquals ... The à capital letter codified in UTF-8 has two bytes (H'C3'H'D1') and codified in ISO-8859-1 has a byte alone (H'D1'), my code was not walking since me the byte was never coinciding received for RS232 H'D1' with the first byte fixed in UTF-8 by means of movlw A'Ã' that is H'C3'. The solution was to change to: movlw H'D1' The question of the million: There is some way of saying to glib/gtk that they should use iso-8859-1 instead of UTF-8 on having run gpsim? I have read thereabouts, that putting something like: ~$ G_FILENAME_ENCODING=ISO-8859-1 <program> that one was forcing to the program in question to use iso-8859-1. On programming with glib/gtk deal very little, but for what I read, so many glib since as gtk try internally in UTF-8. Regards Néstor A. Marchesini Chajari-Entre Rios-Argentina ICQ # 50983752 colo MSN [email protected] [email protected] [email protected] http://www.deselectronica.com.ar