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.27.226 with SMTP id v31mr80496938otv.4.1470712205544; Mon, 08 Aug 2016 20:10:05 -0700 (PDT) X-Received: by 10.157.10.77 with SMTP id 71mr1961472otg.15.1470712205507; Mon, 08 Aug 2016 20:10:05 -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!f6no8450595ith.0!news-out.google.com!d130ni29162ith.0!nntp.google.com!f6no8450590ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 8 Aug 2016 20:10:05 -0700 (PDT) In-Reply-To: <317c7c35-7260-4b0a-9615-b8616c87dfdc@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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <57a33167-1ad7-478d-93e9-692a09311c68@googlegroups.com> Subject: Re: Gtkada, Gtkada_Builder.Add_From_String problem. From: George J Injection-Date: Tue, 09 Aug 2016 03:10:05 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:31330 Date: 2016-08-08T20:10:05-07:00 List-Id: =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_Bu= ilder. I have an xml (GLADE) file, which loading fine with Add_From_File. S= o i've copied text in String var, and Add_From_String doesn't work. May be = 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 > "" & LF = & 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! SOLUTION HAS BEEN FOUND. String to Add_From_String must be at UTF-8 encodin= g format.