Re: UTF-8 Strings
- From: Jeff Franks <jcf tpg com au>
- To: David Eduardo Gomez Noguera <dabicho localhost localdomain>
- Cc: gtk-i18n-list gnome org
- Subject: Re: UTF-8 Strings
- Date: Mon, 14 May 2001 19:51:20 +1000
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]