Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

SaveAs XML in ANSI format

2 posts in DataWindow Last posting was on 2009-08-17 21:04:56.0Z
Avi Posted on 2009-08-04 10:56:09.0Z
From: Avi <averell.saldanha@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: SaveAs XML in ANSI format
Date: Tue, 4 Aug 2009 03:56:09 -0700 (PDT)
Organization: http://groups.google.com
Lines: 4
Message-ID: <3ae46699-c8b4-4bca-8c59-a873880e7525@26g2000yqk.googlegroups.com>
NNTP-Posting-Host: 69.115.237.197
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1249383369 9695 127.0.0.1 (4 Aug 2009 10:56:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 4 Aug 2009 10:56:09 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 26g2000yqk.googlegroups.com; posting-host=69.115.237.197; posting-account=Ua5F6QoAAAAokIRavBKJ0SiFBbzxcMle
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5,gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!nlpi057.nbdc.sbc.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!26g2000yqk.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89734
Article PK: 418922

I have a datawindow with an embedded UTF-8 encoded template. How do I
save this to a file with ANSI encoding. In Pb9 the SaveAs did this but
in PB11 it puts the BOM at the beginning of the file. Adding
EncodingANSI as the last arg to SaveAs did not work.


kilstromcraig Posted on 2009-08-17 21:04:56.0Z
From: kilstromcraig <kilstromcraig@yahoo.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: SaveAs XML in ANSI format
Date: Mon, 17 Aug 2009 14:04:56 -0700 (PDT)
Organization: http://groups.google.com
Lines: 5
Message-ID: <8fe6d1af-b97c-448e-8d26-6da69bc634e2@d4g2000yqa.googlegroups.com>
References: <3ae46699-c8b4-4bca-8c59-a873880e7525@26g2000yqk.googlegroups.com>
NNTP-Posting-Host: 155.188.247.7
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1250543096 2819 127.0.0.1 (17 Aug 2009 21:04:56 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 17 Aug 2009 21:04:56 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: d4g2000yqa.googlegroups.com; posting-host=155.188.247.7; posting-account=sjOvzwoAAAAaB9weqHNa_6u33zNyoGlo
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!novia!news-out.readnews.com!transit4.readnews.com!postnews.google.com!d4g2000yqa.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89778
Article PK: 418965

Is there an intermediate step in your process that has a Blob
variable? If so, replace with a string.

Can you save to a non-ANSI file? If so, you could copy the non-ANSI
file to an ANSI-encoded one as a work-around....