bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Annotations in gnubg


From: Joern Thyssen
Subject: Re: [Bug-gnubg] Annotations in gnubg
Date: Thu, 10 Oct 2002 12:33:38 +0000
User-agent: Mutt/1.4i

On Thu, Oct 10, 2002 at 11:53:01AM +0200, Øystein O Johansen wrote
[snip]
> I've noticed this bug when I commented the Woolsey-Johansen match
> last year. Then I tried to fix it, but my fix didn't work out as
> expected, so the fix was later removed.
> 
> <technical speaking>
> This problem comes from the UTF-8/iso-8859-1 issue. If a user types
> in something in a field, for example the comment field in the
> annotation window, the text will be stored as UTF-8. As the Windows
> version of GTK+1.3 and all versions GTK+2.0, the widgets only take
> characters of UTF-8. On the other hand, the sgf file format is
> defined as iso8859-1. Can we find some way to convert UTF-8 to
> iso-8859-1 before saving the sgf file, and then a way to convert
> back when opening a file? Someone must have had this problem before.
> </technical speaking>

iconv is our friend. Also, I'm quite certain that there are GTK routines
with the same functionality.

Jørn

-- 
Joern Thyssen, PhD
Vendsysselgade 3, 3., DK-9000 Aalborg, Denmark
+45 9813 2791 (private) / +45 2818 0183 (mobile) / +45 9633 7036 (work)
Note: new mobile number!




reply via email to

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