Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] Re: (PR#1824) ruleset data is in incompatible charsets
Home

[Freeciv-Dev] Re: (PR#1824) ruleset data is in incompatible charsets

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Kenn.Munro@xxxxxxxxxxxxxx, jdorje@xxxxxxxxxxxxxxxxxxxxx, jdwheeler42@xxxxxxxxx, jrg45@xxxxxxxxxxxxxxxxx, pawel@xxxxxxxxxxxxxxx, per@xxxxxxxxxxx
Cc: mrproper@xxxxxxxxxx, jlangley@xxxxxxx
Subject: [Freeciv-Dev] Re: (PR#1824) ruleset data is in incompatible charsets
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Mon, 26 Apr 2004 09:12:31 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=1824 >

On Sun, 25 Apr 2004, Jason Short wrote:

>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=1824 >
>
> Jason Short wrote:
>
> > For the display encoding things are a bit harder.  Clients will need to
> > convert to and from the display encoding at every step (gui-sdl already
> > does this).  Some GUI libraries may allow this to be automated.  For
> > others it will be a lot of work!
>
> Note that this is different from what Vasco does now in the conversion
> step for gui-gtk-2.0.  He automatically converts strings to and from
> (basically) the "network" charset and UTF-8 when the strings are
> received from the network.  This works well with the gtk2 client because
> UTF-8 can then basically be used everywhere.  It also works because
> ascii strings can safely be converted into utf-8 and still used.  It
> won't work well for other GUIs with less convenient charsets (like
> gui-sdl with a UTF-16 charset).
>
> I think.  But I kind of hope I'm wrong here, since his way is really easy.

Actually, gui-sdl with a UTF-16 charset would have no problems either.
They just need to pass different hooks for dio_set_conv_callback() and
dio_set_get_conv_callback().

The problem is with charsets of different domains, like ASCII and UTF-8.
iconv's transliteration habilities suck.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa






[Prev in Thread] Current Thread [Next in Thread]