Re: utf-8



Thanks Naoh.
   I have one more doubt.  If we give 8bit value in the input (gtk), whether it is converted to UTF-8, before it gets stored ? Can we store the 8-bit value as it is (instead of converting to UTF-8) in GTK applications ?

with regards
vivek

On Tue, 2003-06-03 at 11:18, Noah Levitt wrote:
Use g_utf8_get_char_validated or g_utf8_get_char to get the
unicode character. You are looking at the byte values, which
are not generally useful.

If you are sure you want the UTF-8 bytes, you might want to
cast to guchar if you want the unsigned values.

gtk-list or gtk-app-devel-list would be better for this type
of question.

Noah

On Tue, Jun 03, 2003 at 11:10:40 +0530, Viveka Nathan K wrote:
> Hi
>   In Pango, the strings are stroed in the UTF-8 standard.  But, while i
> read the characters as integer, it gives some negative values. For
> example,  -32 -92 -107 is stored there for Devanagari 'ka'. This is the
> case for all the characters. How can I get the exact UTF-8 value ?   
> 
> I get the above values in Pango-context.c and shape.c
> 
> with regards
> vivek
> -- 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 
> Viveka Nathan K, DON Lab, IITM, Chennai-36, India. Ph:044-22578904/8353 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> All condemnation of others really condemns ourselves - Swami Vivekananda
_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-i18n-list
-- 


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 
Viveka Nathan K, DON Lab, IITM, Chennai-36, India. Ph:044-22578904/8353        
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
All condemnation of others really condemns ourselves - Swami Vivekananda



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