× 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.



Your point makes lots of sense when you're talking about CSV structure, but not much sense when talking about character sets.

Tell me, is the following line of text in UTF-8 or Windows-1252:

Hello

How would it be different when it's in UTF-8 vs. Windows-1252?

Here it is in hexidecimal in UTF-8: 48656c6c6f
Here it is in hexidecimal in Windows-1252: 48656c6c6f

So you open this in Notepad, and Notepad is going to tell you which of these two encodings it is. 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?

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

If you want Notepad to always, unconditionally, recoginize the file as UTF-8, then use a byte-order mark (BOM).


On 6/23/2012 1:01 PM, John Yeung wrote:
On Fri, Jun 22, 2012 at 10:34 AM, Scott Klement
<rpg400-l@xxxxxxxxxxxxxxxx> wrote:
Forgive me, but... if you're opening the file in
Notepad and then doing a SAVE AS, then the
question isn't really about your program, is it?

I believe it still is about his program, or possibly your copybook.
It looks to me as though he is using the behavior under Notepad as
simply further illustration of what he's observing, not (necessarily)
actual workflow. It's a common diagnostic technique. Whenever
someone says, for example, "my CSV data doesn't look right in Excel",
one of the first things to ask is "OK, what does your data look like
when you open the CSV in Notepad?". It doesn't mean we actually want
them to work with the data in Notepad.

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.)

John




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.