From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,WEIRD_QUOTING autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.157.34.232 with SMTP id y95mr23804799ota.29.1470714058594; Mon, 08 Aug 2016 20:40:58 -0700 (PDT) X-Received: by 10.157.16.85 with SMTP id o21mr5827761oto.0.1470714058438; Mon, 08 Aug 2016 20:40:58 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!f6no8453103ith.0!news-out.google.com!d68ni21475ith.0!nntp.google.com!f6no8453098ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 8 Aug 2016 20:40:58 -0700 (PDT) In-Reply-To: <57a33167-1ad7-478d-93e9-692a09311c68@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=109.252.108.58; posting-account=YB4WOgoAAABLG9D7qoJiPBc6EJSzsPDF NNTP-Posting-Host: 109.252.108.58 References: <317c7c35-7260-4b0a-9615-b8616c87dfdc@googlegroups.com> <57a33167-1ad7-478d-93e9-692a09311c68@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3dadf9d3-9855-46c1-8d47-44b91684ef82@googlegroups.com> Subject: Re: Gtkada, Gtkada_Builder.Add_From_String problem. From: George J Injection-Date: Tue, 09 Aug 2016 03:40:58 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3438 X-Received-Body-CRC: 2694220819 Xref: news.eternal-september.org comp.lang.ada:31331 Date: 2016-08-08T20:40:58-07:00 List-Id: =D0=B2=D1=82=D0=BE=D1=80=D0=BD=D0=B8=D0=BA, 9 =D0=B0=D0=B2=D0=B3=D1=83=D1= =81=D1=82=D0=B0 2016 =D0=B3., 6:10:06 UTC+3 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7= =D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C George J =D0=BD=D0=B0=D0=BF=D0= =B8=D1=81=D0=B0=D0=BB: > =D0=BF=D0=BE=D0=BD=D0=B5=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA, 8 =D0= =B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2016 =D0=B3., 16:24:58 UTC+3 =D0=BF= =D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C George J= =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > > Hi all! Today i've got a problem with Add_From_String method of Gtkada_= Builder. I have an xml (GLADE) file, which loading fine with Add_From_File.= So i've copied text in String var, and Add_From_String doesn't work. May b= e I don't know some feature of this method? > >=20 > > there are to examples i've made > > 1. > > use ASCII; > > UI_Str : String :=3D=20 > > "" & > > "" &=20 > > "" &=20 > > "" &= =20 > > "" & > > "" & > > "" & > > "" &............ > >=20 > > 2.=20 > > use ASCII; > > =20 > > UI_Str : String :=3D=20 > > "" & LF & CR & > > "" & LF & CR &=20 > > "" & LF & CR &=20 > > "" & L= F & CR &=20 > > "" & LF & CR & > > "" & LF & CR & > > "" & LF & CR & > > "" & LF & CR &........... > >=20 > > Result: > > .............. > > if 0=3DBuilder.Add_From_String(Buffer =3D> UI.UI_Str, > > Error =3D> Error'Access) then > > return;-- <--Comes here!!!! > > end if; > >=20 > > Hope smb can help. Thanks! >=20 > SOLUTION HAS BEEN FOUND. String to Add_From_String must be at UTF-8 encod= ing format. Thanks to all!!