Re: UTF-8 Strings



David Eduardo Gomez Noguera wrote:
> 
> I saw this post, and i just thought.
> I need to make a program to parse an utf-8 file.
> It has japanese and latin characters. How can i parse it?
> can something from iconv help? or i am too far?
> 
> must i check each byte to see if it is valid or not?
> 
> This text file has fields sepparated by double spaces.
> 
> thank you.
> 
> --
> ICQ: 15605359 Bicho
>                                   =^..^=
> First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi.
> ........Por que no pensaran los hombres como los animales? Pink Panther........
> -------------------------------気検体の一致------------------------------------
> 暑さ寒さも彼岸まで。
> アン アン アン とっても大好き


I'm using glib-1.3.5. Many of the functions needed are in gunicode.h.
There is also an example 'unicode-encoding.c' that parses a UTF-8 text
file 'utf8.txt' in the ../glib-1.3.5/tests subdirectory. Just in case
you didn't already know.

 
Jeff.




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