× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



John

as you can see in my postings it is not as simple to handle emoji's as to
remove som UTF-8 characters
since google (and many others) converts the emoji to look nice in any
browser by converting the UTF-8
characters to a <img> html statement and that is another ballgame than
simply removing the UTF-8
character.

On Fri, Jul 14, 2017 at 8:41 PM, John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:

On Fri, Jul 14, 2017 at 12:22 PM, Vernon Hamberg
<vhamberg@xxxxxxxxxxxxxxx> wrote:
I did take a shot at copying an XML to an 819-ccsid file - the characters
that did not convert were replaced with x'1A' - I didn't see an option on
the CPY command to change that - so that would need to have been changed
en
masse, since THAT byte also caused a parsing error.

OK, but that seems simple enough. It's a global search and replace.
Possibly a Qshell or PASE command would be enough. At worst, you could
whip up a quick RPG program to do it, no?

I also thought, why not go for the gusto? Why not copy the original XML
to a
file in CCSID37? It would make it impossible to look at the XML in any
standard editor, but maybe that wouldn't matter.

It replaced these non-convertible characters to x;3F;

Right, same thing - if it's not giving you any errors, and replacement
is what you want, you can then just replace the unwanted replacement
byte with whatever you like.

I decided I would continue as I am
with XMLTABLE - I would not easily convince anyone I should change
directions, with again, the risk factor of unknown results.

I'm not suggesting you change yet again, but part of the point of
mentioning CPY was that you could just use your original program
as-is, assuming the original program worked exactly as you wanted it
to, except for the problematic characters. Indeed, this was the
*least* risky thing to try.

John Y.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.