Re: utf-8



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



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