Re: Converting textfile from Mac to Windows




"Joachim Van den Bogaert" <joachim@xxxxxxxxxxxxxxxxxxx> wrote in message
news:c8cd4d70-58bb-4671-a3ba-834c907352eb@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have experienced the problem of converting windows to mac.
We needed Word files for Mac 8.5 so what I did was the following:
First convert the text to rtf, then parse the rtf with a matrix I
composed from the official codepages you find here

http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/

I used this approach because there was something wrong with the
conversion in Word for Windows.
CE languages showed corrupted characters.

After I wrote the conversion tool, the files were ok for mac.

The text is plain ASCII so I suggest you have a look at the codepages
on the link I gave you
and do a hex dump of your file (rename it to a .bin file for example)
in Visual Studio so you can trace wrong characters.
Maybe then you can find out which code page has been used. If the
approach with the .NET codepages doesnt work
you can still use the matrix method,

Hope this helps,
Joachim

Thank Joachim for your reply.
My case is following:

1. Filemaker should write a file to filesystem containig data from database.
2. C# / Asp.Net should read this file, parse it and insert data into SQL
Server.

Problem is that special characters that Filemaker writes into file are not
shown correctly in
Windows.

I have tried to encoding using C#'s Encoding classes but still special
characters are not shown.

Do you know that what is the default encoding when FileMaker writes data
into file?
Is it possible and how to change encoding so that Windows can also
understand it, maybe UTF8?

I would be very grateful for tips what comes to proper encoding between Mac
FileMaker and Windows.

Thanks,

- J


.



Relevant Pages

  • Re: length of char in bits differs on Win/Linux and Mac
    ... You were just lucky on Windows with your algorithm, and you used the wrong encoding for reading on the Mac. ... because Java uses Unicode for all characters. ...
    (comp.lang.java.programmer)
  • Re: Text file format
    ... of some documents that I have imported from Windows systems but which ... Unix, including Mac OS X ... to be universal (lots of characters, lots of support), go with a ... go for the encoding for that language (eg. ...
    (comp.sys.mac.misc)
  • Re: Pages vs. MS Word
    ... native encoding was and found that encoding to be "Mac OS Roman". ... Then I opened it again selecting UTF16,UTF8, Western (Mac OS Roman), Western (Windows Latin ... That again confirms to me that TextEdit is a deaf-mute in a telephone booth. ... If the document has characters that a particular encoding ...
    (comp.sys.mac.apps)
  • Re: Strange Characters When Viewing Outlook Express messages
    ... Messages Received in Outlook Express Have Different Characters in the ... messages in the default encoding format regardless of the actual encoding ... changed something with whatever they use to produce the emails. ...
    (microsoft.public.windowsxp.general)
  • Re: Help me!! Why java is so popular
    ... Well, Unicode is not a storage encoding system, or anything like that. ... Unicode is primarily a mapping from characters (in the linguistic conceptual ... French, Russian, Japanese and Korean songs. ...
    (comp.lang.java.programmer)