[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Gtk utf8 konvertering fejler



Hej NG

Jeg sidder lige og er ved at skrive en lille gtk applikation som skal tage
noget data fra en xml fil og ligge det i en gtk liststore. Problemet er at
man ikke bare kan tage den direkte tekst da den ikke er encoded i utf8.
Så derfor skal jeg lave noget konvertering ved hjælp at
g_locale_to_utf8. Problemet er at strengen jeg får ud ved hjælp a
g_locale_to_utf8 er tom, ligegyldigt hvad jeg kommer ind i den??

Nogen der har været ude for noget lignende?

Jeg klipper lige lidt kode ind til jer:

  converted_title = g_locale_to_utf8(title,strlen(title),NULL,NULL,NULL);
  printf("converted: %s - %d\n", converted_title, g_utf8_validate(converted_title, -1, NULL));

Bruger jeg funktionen rigtigt?

mvh
Jesper Mørk


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *