Creating Mac-codepage file using FSO

Discussion in 'ASP General' started by Tomas Eklund, Nov 4, 2005.

  1. Tomas Eklund

    Tomas Eklund Guest

    Is it possible to create a textfile using a macintosh compatible codepage using
    the ASP File System Object? I have been trying pretty hard for a while now and
    am getting more and more frustrated. The textfile I am creating is to be
    imported into a mac database and there are some "extended" characters that
    doesn't display right if I use the standard (windows?) encoding (which I believe
    is dependant on the default encoding set on the web server operating system, and
    I cannot change that).

    I have even tried to "manually" change the affected characters using hexadecimal
    search and replace operations, but if I do this the ASP engine generates an
    error message and execution of the script is halted:

    sData = sData.replace(/\xE5/gm, String.fromCharCode(0x8C)); // å

    Oh, and Unicode didn't seem to be supported by the database the customer was
    using so that's no option either. I think I need something like the 10000 Mac
    Roman cmap.

    --
    Best regards,
    Tomas Eklund
    Tomas Eklund, Nov 4, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike Prager

    Culture and Codepage question

    Mike Prager, Aug 30, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    1,438
    Mike Prager
    Aug 30, 2003
  2. Benny Ng
    Replies:
    0
    Views:
    369
    Benny Ng
    Jun 17, 2004
  3. Yahya Saad

    Two Codepage

    Yahya Saad, Oct 13, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    410
    Yahya Saad
    Oct 13, 2004
  4. Mehmet Gunacti
    Replies:
    0
    Views:
    384
    Mehmet Gunacti
    Mar 1, 2005
  5. DC
    Replies:
    12
    Views:
    4,001
    Joerg Jooss
    Jun 20, 2006
Loading...

Share This Page