Page 1 of 1

Mac OS X to Win XP Text Format

Posted: Tue Nov 23, 2004 3:18 pm
by jmf314159
Is there a way to save to diskette an *.htm file written/modified with Oxygen on an iMac such that it can be read (as properly formatted) by Notepad on an Intel box? Thanks.

Posted: Tue Nov 23, 2004 3:29 pm
by george
Hi,

The encoding for XML files is very clearly specified. For non xml files (as in your case) oXygen uses a user configurable encoding. By default on Mac that is set to MacRoman. You can change it from Oxygen->Preferences dialog using the Encoding for non XML files entry in the Global tab. I guess that changing that to UTF-8 for instance will solve your problem.

Best Regards,
George

Posted: Tue Nov 23, 2004 4:27 pm
by jmf314159
Thanks, george, but I was speaking of converting from the unix style strings (terminated with the nl character 0x0a) to 'dos' style strings (terminated with cr/lf - i.e., 0x0d/0x0a).

When I use notepad at work to read an iMav/Oxygen produced text file, the text is readable, but all of the new-line formatting is lost. Interestingly, CodeWright handles the files just fine. Unfortunately, I'm dealing with html homework and my instructor uses notepad exclusively.

Posted: Tue Nov 23, 2004 4:41 pm
by george
Hi,

Try then setting the Line separator property (you can find it on the same preferences dialog tab) to Windows-like.

Best Regards,
George[/code]

Posted: Fri Nov 26, 2004 6:31 pm
by jmf314159
Nope. It still doesn't work. It's very frustrating ...

Surely someone out there has created an oxygen/iMac document readable by xp/Notepad. No?

Posted: Wed Dec 01, 2004 12:07 am
by dnedrow
This really has nothing to do with oXygen directly.

As you noted, it is a mismatch between how each OS handles new lines.

Here's a simple Mac version of the [unix|dos]2[unix|dos] utilities that are pretty standard. Apple should probably add this to the Darwin portion of OS X.

http://www.osxgnu.org/software/Fileutils/Unix2Dos/

I'm sure there are also Windows versions of the same utilities.

-David