Hi Scott,
Thank you for the BOM example.
If I understnad correctly, having that as the first "record" in my file
does nothing other than tell some other program that this file is UTF-8
encoded and that it will not be treated as data.
I will add this logic to my program and if any other issues, I will post
them here.




On Sun, Jun 24, 2012 at 8:52 PM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>wrote:


Hi John,

I don't understand what you're getting at. Your prior post opined that
there was still a problem in his code (or my copy book) and the primary
evidence that you cited was that Notepad is detecting the file as UTF-8.

I'm trying to convey to you that, despite being coded as either UTF-8 or
Windows-1252 in the program, the binary image of the file might be
identical, and therefore there's no way for Notepad to tell which one it
is -- thus producing the symptom that Jeff described, where he creates
the file as UTF-8, and Notepad detects it to be Windows-1252.

What part am I "not listening" to?! What part am I not reading?!

The "miss cleo" thing was not intended to be disrespectful -- it was
meant to illustrate a point: That if the binary contents are the same,
the only way Notepad could possibly know which one you created the file
with would be by reading your mind.


-SK



On 6/24/2012 1:11 PM, John Yeung wrote:
Did you read the part where I said:

Whenever someone tells me "this is what I'm seeing
in Notepad", I treat it as "here's another symptom that
might help you diagnose my problem". Maybe it turns
out to be irrelevant, but they are just trying to give as
much information as they can. (If they already knew
*exactly* what was relevant and what was not, there
is a good chance they don't need to come to us for
help in the first place.)

Also, the OP did not say that the characters looked any different. He
said the "Save As..." dialog gave different defaults for the different
files he tried.

How on earth do you expect Notepad to know
which of the two encodings it's created in when
they have the exact same binary/hex representations,
and Windows has no knowledge of CCSIDs?

And yet Notepad DID give him different "Save As..." defaults...

Oh, I know! Notepad calls Miss Cleo's Psychic
network, and they read your mind.

No need to mock, Scott. We all know you are incredibly knowledgeable
and talented and have contributed a lot to the community. And
normally you are courteous and patient as well. I'm not sure why you
were not this time.

Let's try reading the question, not dismissing it out of hand, and
responding in a respectful manner. (You seemed to see the words
"Notepad" and "Save As" and immediately went to a canned response of
"Windows doesn't know CCSIDs, sorry" instead of actually trying to
understand what the OP was saying.)

John



--
This is the RPG programming on the IBM i / System i (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.





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.