|
bradley
i completely have forgotten that little trick ;-) as far as i remember
ms-office also works with it but i wouldn't rely on the method today
and not with json/webservices.
On Wed, Aug 26, 2015 at 5:00 AM, Bradley Stone <bvstone@xxxxxxxxx> wrote:
I should state this was just in Chrome and I understand most clientsfind.
probably will ignore the Content-encoding header... but it was a fun
:)wrote:
Brad
www.bvstools.com
On Tue, Aug 25, 2015 at 5:09 PM, Bradley Stone <bvstone@xxxxxxxxx>
all
Henrik,
I found something you posted a few years ago and tried it and it worked
for me...
Content-type: application/json
Content-encoding: EBCDIC
Is this something deemed incorrect or not a solution? I was actually
surprised it worked. :)
Maybe there is a better solution? It seems we would need to convert
otherwisethe output to a specific CCSID before writing it out to StdOut
PowerEXT(not a huge issue, but may be for some that can't just modify theirsimple
toolkits to do this).
Brad
www.bvstools.com
On Tue, Aug 25, 2015 at 3:41 PM, Matt Lavinder <
mlavinder@xxxxxxxxxxxxxxxxxxx> wrote:
Henrik -
Already downloaded it. :)
I noticed you example HTTP instance that you make UTF-8 the default
encoding. I can't do that. If possible, could you send me a very
butexample of how to make this work in PowerEXT Core without changing the
HTTP
Server configuration? I see the procedures for turning on UTF-8 mode
cannotdidn't see any examples that use them. Plus, you said the headers
findbe UTF-8 encoded.
I already have a CGIDEV2 template setup for my JSON, so I really don't
want
to change gears and use the JSON library, but I have no issue doing a
replace and changing WRTSECTION to something else and using the
wrote:needCore. I don't even mind changing the section and variable tags if I
to.
On Tue, Aug 25, 2015 at 2:18 PM, Henrik Rützou <hr@xxxxxxxxxxxx>
conversionInc. <
markinstallations
if you work a lot within this area you will find that ibm i
seldom is able to dictate the content-type
text/json isn't btw an official mime type
On Tue, Aug 25, 2015 at 7:50 PM, Mark Murphy/STAR BASE Consulting
mmurphy@xxxxxxxxxxxxxxx> wrote:
Just out of pure ignorance, since application/json causes
Iuseissues, and text/json appears to work properly, why do you want to
clientapplication/json? Are there issues that text/json causes on the
side?web400@xxxxxxxxxxxx>
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
-----Matt Lavinder <mlavinder@xxxxxxxxxxxxxxxxxxx> wrote: -----
To: "Web Enabling the IBM i (AS/400 and iSeries)" <
From: Matt Lavinder <mlavinder@xxxxxxxxxxxxxxxxxxx>
Date: 08/25/2015 11:42AM
Subject: Re: [WEB400] Content-type issue with application/json and
application/javascript
Henrik -
No worries. I have no intention of changing our CGIConvMode, but
theCGIdid
want to make sure I understood the implications. The bulk of our
wrote:programs produce text/html and they work perfectly fine.everything
I plan to tweak the programs that produce JSON output and leave
else alone.
On Tue, Aug 25, 2015 at 11:36 AM, Henrik Rützou <hr@xxxxxxxxxxxx>
btw if you use binary or recieve application/xxxx content type
meaninput
also
is recieved as binary without conversion to ebcdic
On Tue, Aug 25, 2015 at 5:34 PM, Henrik Rützou <hr@xxxxxxxxxxxx
wrote:makes
matt
you are right
On Tue, Aug 25, 2015 at 5:31 PM, Matt Lavinder <
mlavinder@xxxxxxxxxxxxxxxxxxx> wrote:
Kevin -
It's OK because I know enough to get what he was saying. It
itbody.
pretty clear in the HTTP Server documentation that if you add
"charset=utf-8"
(really, charset=anything) that no conversion occurs on the
I have never tried CGIConvMode %BINARY%, but wouldn't that
Behalfalwaysthat
allunderstand
"content-type:text/*"?your content has to be UTF-8, including output with
On Tue, Aug 25, 2015 at 11:23 AM, Kevin Turner <
kevin.turner@xxxxxxxxxxxxxxxxxxxx> wrote:
Henrick
I know English is not your first language, but I couldn't
that
at all :)
But anyway, my observations are not relevant because we
use
"CGIConvMode BINARY"
Kevin
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On
Ofwhen
application/jsonHenrik
web400@xxxxxxxxxxxx>Rützou
Sent: 25 August 2015 16:19
To: Web Enabling the IBM i (AS/400 and iSeries) <
Subject: Re: [WEB400] Content-type issue with
sendand
application/javascript
apache doesn't neither converts from an ebcdic body if you
then
the
body also has to be pre-encoded in utf-8
Content-Type: text/html; charset=utf-8
On Tue, Aug 25, 2015 at 5:14 PM, Kevin Turner <
kevin.turner@xxxxxxxxxxxxxxxxxxxx> wrote:
I am pretty sure we always ensure the data is in UTF-8
javascript,Behalf"text/...."sending
content that has a content type that is anything but
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On
haveOf
application/jsonMatt
web400@xxxxxxxxxxxx>Lavinder
Sent: 25 August 2015 16:12
To: Web Enabling the IBM i (AS/400 and iSeries) <
Subject: Re: [WEB400] Content-type issue with
and
application/javascript
Hello Henrick. That's sort of what I suspected. Do I
to
tellchange
the
CGI program to produce ASCII output, or is there a way to
"application/javascript"Apache
to do an EBCDIC to ASCII conversion on an
hr@xxxxxxxxxxxx>content type?
On Tue, Aug 25, 2015 at 10:56 AM, Henrik Rützou <
text/...wrote:
apache converts ebcdic to utf-8 if the content type is
othervise not.
On Tue, Aug 25, 2015 at 4:52 PM, Matt Lavinder <
mlavinder@xxxxxxxxxxxxxxxxxxx> wrote:
We have several CGI programs that generate
orusually
JSON.
For years we have set the content type to text/plain
exactstandardtext/javascript. I'd like to start using the more
"application/json", but I amhitting
a major snag. The output is garbage. I get the
application/javascript.same
output
when I set the content-type to
withAddType
Just to verify this was related to CGI output, I used
to
"application/javascript".changethe
content-type of static JavaScript files to
Those
files look fine, so this must have something to do
garbageit
knowbeing
CGI output.
I don't really know what is up with the output, but I
it
isn't EBCDIC. It doesn't convert. Garbage in,
isout.
CGIDEV2Changing thecontent
type back to text/javascript sets everything right.
Anyone have any guesses what is going on here? We use
under IBM i 7.1. The default CCSID of our CGI jobs
text,following37.
Just so we are clear on one thing. We had the
thesettings
in our HTTP Conf:
DefaultFsCCSID 037
CGIConvMode %%EBCDIC/EBCDIC%%
I commented both settings out and it had no impact on
"application/javascript"typeoutput
whatsoever. All of our CGI programs that use content
of
"text/*"
seemed to work. The ones using
or
binary,garbage."application/json" for content type still looked like
content-typeThe only guess I have is that mod_cgi sees that the
starts with "application" and treats the output as
but I
have no idea how Ican
tell mod_cgi to treat "application/javascript" as
prettyor
if
that
iseven
the issue.
I am hoping someone has an idea. I know Apache
iSeries)well,
but
this one has me stumped.
--
Matt
--
This is the Web Enabling the IBM i (AS/400 and
posting,http://lists.midrange.com/mailman/listinfo/web400WEB400@xxxxxxxxxxxx(WEB400)
mailing list To post a message email:
To
subscribe, unsubscribe, or change list options,
visit:
or email: WEB400-request@xxxxxxxxxxxx Before
http://lists.midrange.com/mailman/listinfo/web400WEB400@xxxxxxxxxxxxplease
(WEB400)take
http://archive.midrange.com/web400.a moment to review the archives at
--
Regards,
Henrik Rützou
http://powerEXT.com <http://powerext.com/>
--
This is the Web Enabling the IBM i (AS/400 and iSeries)
mailing list To post a message email:
To
subscribe, unsubscribe, or change list options,
visit:
Inc.Phone:pleaseor email: WEB400-request@xxxxxxxxxxxx Before posting,
take a
http://archive.midrange.com/web400moment to review the archives at
.
--
*Matt Lavinder Programmer AnalystData Management
WEB400@xxxxxxxxxxxx(336)(WEB400)
573-5045Fax: (336) 573-5001*
--
This is the Web Enabling the IBM i (AS/400 and iSeries)
mailing list To post a message email:
Toarchives
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the
namedtransmissionat
http://archive.midrange.com/web400.
___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/
________________________________
NOTICE: The information in this electronic mail
is
intended by CoralTree Systems Ltd for the use of the
receivedinformationindividuals
or entity to which it is directed and may contain
that
is
privileged or otherwise confidential. If you have
sender'sfromthis
electronic mail transmission in error, please delete it
yoursender
system without copying or forwarding it, and notify the
of
the
error by reply email or by telephone, so that the
WEB400@xxxxxxxxxxxxaddress----------------------------------------------------------------------
records can be corrected.
(WEB400)----------
CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the Web Enabling the IBM i (AS/400 and iSeries)
mailing list To post a message email:
Toarchives
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the
transmissionatat
(WEB400)http://archive.midrange.com/web400.
--
Regards,
Henrik Rützou
http://powerEXT.com <http://powerext.com/>
--
This is the Web Enabling the IBM i (AS/400 and iSeries)
subscribe,mailing
list To post a message email: WEB400@xxxxxxxxxxxx To
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
http://archive.midrange.com/web400.
___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/
________________________________
NOTICE: The information in this electronic mail
isindividuals
intended
by CoralTree Systems Ltd for the use of the named
electronicor
privilegedentity
to
which it is directed and may contain information that is
or
otherwise confidential. If you have received this
--------------------------------------------------------------------------------
withouttransmission in error, please delete it from your system
copying or
forwarding it, and notify the sender of the error by reply
orcorrected.
by
telephone, so that the sender's address records can be
mailing(336)(WEB400)
CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the Web Enabling the IBM i (AS/400 and iSeries)
mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
*Matt Lavinder Programmer AnalystData Management Inc.Phone:
(WEB400)573-5045Fax: (336) 573-5001*
--
This is the Web Enabling the IBM i (AS/400 and iSeries)
mailingmailingmailingmailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
Regards,
Henrik Rützou
http://powerEXT.com <http://powerext.com/>
--
Regards,
Henrik Rützou
http://powerEXT.com <http://powerext.com/>
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
*Matt Lavinder Programmer AnalystData Management Inc.Phone: (336)
573-5045Fax: (336) 573-5001*
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailinglist
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
Regards,
Henrik Rützou
http://powerEXT.com <http://powerext.com/>
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
*Matt Lavinder Programmer AnalystData Management Inc.Phone: (336)
573-5045Fax: (336) 573-5001*
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
--list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
Regards,
Henrik Rützou
http://powerEXT.com <http://powerext.com/>
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.