Re: Converting textfile from Mac to Windows
- From: "Peter Duniho" <NpOeStPeAdM@xxxxxxxxxxxxxxxx>
- Date: Thu, 19 Jun 2008 00:09:41 -0700
On Wed, 18 Jun 2008 11:21:30 -0700, Jone <jone@xxxxxxxx> wrote:
[...]
But, it does not convert e.g. German and Scandinavian characters written in
Mac to proper format in Windows.
How can a textfile written in MAc could be converted into Windows
environment?
It all depends on what encoding the text _really_ is in.
The encodings you've selected are in fact Mac and Windows encodings. But just because a file came from the Mac doesn't mean it's using "code page 10000", and likewise just because you're running Windows, that doesn't mean you want the text encoded in "code page 1252".
So you need to find out where the file came from and what encoding was actually used. You also need to look at what program you intend to use to look at the text in Windows and find out what encoding(s) it expects/supports. Then you need to use the correct source and destination encodings, based on that information.
Ideally you'll find that on the Mac, you can output your text as a Unicode format (e.g. UTF-8) and on Windows you can import your text as the same Unicode format. Then you have no conversion to do at all (well, except for adding the extra CR to the LF that the Mac text files usually use alone for line breaks :) ).
Pete
.
- Follow-Ups:
- Re: Converting textfile from Mac to Windows
- From: Joachim Van den Bogaert
- Re: Converting textfile from Mac to Windows
- References:
- Converting textfile from Mac to Windows
- From: Jone
- Converting textfile from Mac to Windows
- Prev by Date: Re: regex doesn't match expression
- Next by Date: Re: Algorithm for sbyte?
- Previous by thread: Converting textfile from Mac to Windows
- Next by thread: Re: Converting textfile from Mac to Windows
- Index(es):
Relevant Pages
|