Encoding and exporting text (JS CS3 MAC and PC)

Hi -- I am trying to export text from InDesign as an ASCII file. But I am ending up with a zero K file.
var myX = new File(myTarget);
myX.encoding = "ASCII";
myX.lineFeed = "unix";
myX.open("w");
myX.write(myString);
myX.close();
I have success with this:
var myX = new File(myTarget);
myX.encoding = "UTF-8";
myX.lineFeed = "unix";
myX.open("w");
myX.write("\uFEFF" + myString);
myX.close();
But the person on the other end of the export says I need to convert UTF-8 to ASCII encoding.
Any help would be greatly appreciated.

ANSI =/= ASCII
If you have your string in Javascript, all you have to do is kick out all characters with a Unicode greater than 255. For "true" ASCII you also have to ditch all 8-bit characters, i.e. everything above code 127. It's straightforward to replace them with a '?'; you could make it nicer by replacing them with "acceptable" replacements for the most common characters, such as a straight double quote instead of double curlies, remove accents from Latin-1 characters, replacing en and em dashes with hyphens, etc. Even replacing the ellipsis with "..." wouldn't do no harm. But you're going to have to make some compromises.
Is your client really okay with you sending "processed" text? Depending on what goes in, the output may or may not resemble anything coherent anymore. Imagine a phrase in Greek.
>There are some utf-8 characters they cannot handle.
Wot nonsense. "Some"!? It's All or Nothing, I'd say. If they send you a list of those they can, or cannot, you could make a better translation.
>..  notes ..
Wait, you have notes -- as in "footnotes"? That concept simply does not exist in ASCII, ANSI, or for that matter, in UTF-8.

Similar Messages

  • I wish to del one apple id and make one common for mac and i phone, please suggest

    i wish to del one apple id and make one common for mac and i phone, please suggest

    You cannot delete an Apple ID, you just stop using it. Understand that any apps purchased using that ID can only be updated with it. Apps are tied that ID used to purchase them. If you want to use a new ID for everything, you will need to repurchase any old apps using the new ID.

  • I have an ipod that is synced with an old PC, and now I have a Mac and I want the ipod to sync the photos on it with the Itunes on my Mac, but it says it was synced with another ipod.  How can I accomplish this?

    I have an ipod that is synced with an old PC, and now I have a Mac and I want the ipod to sync the photos on it with the Itunes on my Mac, but it says it was synced with another ipod.  How can I accomplish this?

    Is it the same user/iTunes account or...?
    Syncing to a new computer should give you the opportunity to replace the exisiting contents with the new.

  • Is it possible to import and export dump between oracle 9 and oracle 11?

    Is it possible to import and export dump between oracle 9 and oracle 11?
    Source DB : Oracle 11g(unix0
    Oracle client : Oracle 9(Windows)
    Export import utility : Oracle 9's
    Destination DB : oracle 9

    I am getting the Following Error and export utility is not responding after this.
    Export: Release 9.2.0.1.0 - Production on Thu Jul 15 14:37:01 2010
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses AL32UTF8 character set (possible charset conversion)

  • Got new macbook pro. What is the best way to transfer my itunes from my old pc to my new mac? I want to be able to plug my iphones and ipad in to new mac and have redo anything

    Got new macbook pro. What is the best way to transfer my itunes from my old pc to my new mac? I want to be able to plug my iphones and ipad in to new mac and have redo anything

    See Here... This should transfer everything...
    Move iTunes Library from PC to MAC
    http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

  • I had a PC and now I have a MAC and I want to download my Adobe Acrobat XI Pro to my MAC

    I had a PC and now I have a MAC and I want to download my Adobe Acrobat XI Pro to my MAC

    Hi ndhsearch,
    I tired looking up your account using the Adobe ID/email address that you use here in the forums. I don't see any Acrobat purchases tied to that Adobe ID. Did you make your purchase or register Acrobat using a different Adobe ID? If so, please log in to www.adobe.com using that Adobe ID, click Manage Account, and the click Plans & Products. Your registered products should be listed there.
    Best,
    Sara

  • My macbook pro keeps saying I have 450 gigabytes out of 500 that are used.  But when I look on finder there are no files that are anywhere close to that amount.  I went through and deleted files from my mac and now I only have 10 gs free

    My macbook pro keeps saying I have 450 gigabytes out of 500 that are used.  But when I look on finder there are no files that are anywhere close to that amount.  I went through and deleted files from my mac and now I only have 10 gigabytes of additional space free. My mac now says I have 440 gigs of other that is used. But does not make sense, do I have a virus?

    Since you have not identified the OS your MBP is using, these extract may or may not assist you.
    http://pondini.org/OSX/LionStorage.html
    http://pondini.org/OSX/DiskSpace.html
    You may also download from the Internet OmniDiskSweeper (free) and open it it will show all of the files on your MBP and the respective sizes.
    ciao.

  • I bought elements 11 at COSTCO and downloaded on a laptop and PC!  PC died and I now have a MAC and wonder how I can transfer the program to my MAC?

    I bought elements 11 at COSTCO and downloaded on a laptop and PC!  PC died and I now have a MAC and wonder how I can transfer the program to my MAC?  I have the serial number from the purchase.

    Try downloading the PSE11 installer from Download Photoshop Elements products | 12, 11, 10
    Install then enter your serial number.

  • Is there a way to stop the text shifting between mac and pc?

    I can't believe there is still no fix to the vertical text shift issue when transferring fla's between Mac and PC's. Create an fla on a Mac put some text in it, save the file and open it on a PC and see how the text has dropped.
    Adobe please tell me I'm missing something here or at least acknowledge the problem and explain the cause.
    This problem has plagued flash for as long as I can remember. None of the other applications (Photoshop, Illustrator etc) have this problem. It wastes huge amounts of time and causes massive quality control issues especially when outsourcing work.
    We're using CS3 now and the problem is as bad as ever. It happens with all text fields and all font types.
    Please help.

    Don't get your hopes up that anyone from Adobe will see your posting.  These are user to user forums and appearances by anyone from Adobe are rare.
    suggestions to Adobe - Wishlist
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • I recently bought my 1st IMac. I need to know how to back up and export my Outlook Contacts, Folders, and Saved Emails to the new Mac Mail

    I need to know how to back up my Outlook data from my PC (contacts, folders, saved emails) and export them to my new Mac Mail

    http://www.google.dk/search?source=ig&hl=da&rlz=1G1TSEH_ENDK367&q=import+outlook +mails+to+apple+&oq=import+outlook+mails+to+apple+&aq=f&aqi=&aql=&gs_sm=e&gs_upl =1308137l1317536l0l1317968l30l29l0l11l6l0l242l2780l2.10.5l17l0#hl=da&rlz=1G1TSEH _ENDK367&sa=X&ei=AlrFTsDBBZD64QTLvJm3DQ&ved=0CCEQBSgA&q=import+outlook+emails+to +apple&spell=1&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=583a6dce352ae6fd&biw=1746&bih=75 5

  • Setting up and managing iPhoto with new Mac and external harddrive

    First time Mac user and I'm stressing about iPhoto!
    I have the new 13" Macbook Air.
    I have my old PC (no longer using) that has all of my old photos on it.
    Those photos are also on my Wireless Network Drive.
    Have not done anything YET in iPhoto because I want to set it up properly.....that's where I'm stressing.....
    Here is how I want it to work, which I fear is not possible or maybe I'm just not understanding the correct setup I need to do to meet my needs:
    1. I want all of the old PC pics to stay on the Network Drive only UNLESS I decide to BRING the specific ones into iPhoto down the road.
    2. I want new pics I take on my SLR to go to iPhoto (which they will) AND the Network Drive for back up (no problem here)
    3. Every now and then I will MOVE the photos OFF of my Mac completely and to the Network Drive to make sure I always have space on the Mac.
    I also have iCloud and Time Machine so maybe those could help me as well.
    4. This is my biggiest complaint.....when I open a photo in iPhoto and edit it, I WANT TO SEE THE ORIGINAL FILE in iPhoto ALWAYS.  After reading tons of message boards it sounds like yes, iPhoto does save the original BUT it is nearly impossible to find and it is labeled very poorly.  (I know there is a trick to view the original next to the edited one while you're in iPhoto, but that isn't what I mean).  I essentially want to see my edited photo and my original photo just like you would on a PC if you did 'save as new'.  I want the original in iPHOTO next to/near the edited one(s) not in a hidden/impossible to find/archived path. 
    If I'm understanding correctly from what I've read, based on what I want, I may need to use a 'reference library' versus a 'managed library'?
    I'm not crazy about doing that though because it seems there are risks because it isn't stored in the 'library package'?
    To make a long story short, I want my new pics on my Mac, old pics can stay on the network drive (unless I want to edit them or show someone), and I want to be able to easily access the ORIGINAL file.  I want everything to be safely backed up and want the option to move things to the network drive/time machine/cloud or w/e when space gets limited on Mac.
    Any help/advice would be greatly appreciated. 

    New photos go to iPhoto, I organize, tag, create albums do whatever.  These are also getting backed up in the Cloud and Time Machine (I think?? I still have to research more about how those works....sorry, Mac Newbie)
    There is no iCloud backup of photos
    Time Machine is good - but it appears that it does not backup the iPhoto library if iPhoto is running so be careful there
    If I start to really run out of space, I can move them off Mac completely.
    To do that correctly you need an external disk formatted Mac OS extended (journaled) with an iPhoto library on it and use iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  to move photos between your MBA iPhoto library and the iPhoto library on the external drive
    Regarding issue #4 about the original version, I read one of your posts which explained that the original version can be viewed by going to Home/Pictures/Photo Library Folder/Originals......so I could do that (as long as I don't mess with it). My only concern here is the naming convention that will use- I feel like it will be so hard for me to find the original one I want.
    That is not a supported way to access the originals and is dangerous - any change no matter how small can corrput yoru library and cause loss of data and possibly photos - the simple rule is never go into the iPhoto library - there is no reason to - if you wnat the original photo you select it in iPhoto and export as kind = original
    Maybe a program like Aperture may be better for me, but again, I'm open to suggestions since you're much more familiar with all of this than I am!
    Aperature is more expensive and has many more capabilities including working well with referenced libraries
    As to using iPhoto - no one here "encourages" anyone to use iPhoto - in fact for people who want to do things iPhoto does not do or ins not good at we often recommend using other programs - if you want to use it we can help use it correctly - we can not helop you use it incorrectly or make any changes in the way it works

  • Video formats and optimum settings for both Mac and Windows XP

    Now this is a strange one: I create a Windows Media (WMV) file and it plays great on the Mac (I have Flip4Mac installed also). However, it doesn't play on Windows XP in MSIE -- but the QuickTime (.M4V file) does. I do have QuickTime installed on the WXP. I guess the following questions are of interest not only to me but to a lot of people:
    1. What are the absolute optimum settings and format for a QuickTime file that will be played on an Apple in Safari or other browser? .MOV? .M4V? .MP4?
    2. Same question for Windows XP. .AVI? .WMV?
    I know there is a lot of already available information on this but I'm looking for a video expert who has troubleshot this to death and has this down and working on an existing website.
    NOTE: I would make it a Flash file but Keynote exports a non-playing Flash format file as does QuickTime, so no luck there. Also, for some stupid reason Keynote separates the audio and video when exporting to a QuickTime movie and what's with that?
    Sorry this got long but not only I, but I'm sure a lot of people have this set of questions. Much appreciated.
      Mac OS X (10.4.8)  

    sorchard –
    Depends – if you are planning on connecting to an Exchange Server then I would suggest that you install Crossover (www.codeweavers.com) on your Mac’s and then Office 2003/Outlook. I am connecting to an Exchange Server running Windows Small Business Server 2003 and have not had any problems using Outlook and sharing Calendar data between my XP and Mac systems.
    If you are not planning on using Exchange and your mail usage is not that demanding (less than 20 messages daily) the you could use the basic Mail clients that come with OSX (Mail) and Windows (Outlook Express).
    Respectfully –

  • [PrintService] Weird and different behavior on my Mac and my PC

    Hi
    I've been struggling with a printing problem for now more than 20 hours and i decided to go back to the beginning.
    So first, before trying to print any random String, i want to check what can print my printers connected.
    Since i was having problems, i am trying both on my Mac and my PC.
    Both are connected to my network using Ethernet.
    Here is my code
    DocFlavor[] triedFlavors = {
                        DocFlavor.STRING.TEXT_PLAIN,
                        DocFlavor.STRING.TEXT_HTML,
                        DocFlavor.INPUT_STREAM.AUTOSENSE,
                        DocFlavor.STRING.INPUT_STREAM.TEXT_PLAIN_UTF_8,
                        DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_8,
                        DocFlavor.INPUT_STREAM.STRING.TEXT_PLAIN
                InputStream is = new ByteArrayInputStream(test.getBytes());
                BufferedInputStream bis = new BufferedInputStream(is);
                PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet();
                printRequestAttributeSet.add(new Copies(1));
                printRequestAttributeSet.add(MediaSizeName.ISO_A4);
                DocAttributeSet docAttributeSet = new HashDocAttributeSet();
                //docAttributeSet.add(MediaSizeName.ISO_A4);
                for (Attribute attribute : docAttributeSet.toArray()) {
                    System.out.println("Attribute Set:" + attribute.toString());
                for (DocFlavor flavor : triedFlavors) {
                    System.out.println("Flavor chosen:" + flavor.toString());
                    PrintService[] services = PrintServiceLookup.lookupPrintServices(flavor, docAttributeSet);
                    System.out.println("Available printers for this flavor and this attribute set : " + services.length);
                    for (PrintService service : services) {
                        System.out.println("Available: " + service.toString());
                }  I get with my PC:
    Flavor chosen:text/plain; charset="utf-16"; class="java.lang.String"
        Available printers for this flavor and this attribute set : 0
        Flavor chosen:text/html; charset="utf-16"; class="java.lang.String"
        Available printers for this flavor and this attribute set : 0
        Flavor chosen:application/octet-stream; class="java.io.InputStream"
        Available printers for this flavor and this attribute set : 7
        Available: Win32 Printer : \\CATE\IMP_CATE
        Available: Win32 Printer : \\SRV-PRINT\4-XCOULEUR
        Available: Win32 Printer : \\SRV-PRINT\5-X-Couleur
        Available: Win32 Printer : \\SRV-PRINT\5-XCOULEUR
        Available: Win32 Printer : \\Srv-print\6-OPERA
        Available: Win32 Printer : \\Srv-print\6-RICOH
        Available: Win32 Printer : Microsoft Office Document Image Writer
        Flavor chosen:text/plain; charset="utf-8"; class="java.io.InputStream"
        Available printers for this flavor and this attribute set : 0
        Flavor chosen:text/plain; charset="utf-8"; class="java.io.InputStream"
        Available printers for this flavor and this attribute set : 0
        Flavor chosen:text/plain; charset="utf-16"; class="java.lang.String"
        Available printers for this flavor and this attribute set : 0  And with my Mac:
          Flavor chosen:text/plain; charset="utf-16"; class="java.lang.String"
        Available printers for this flavor and this attribute set : 2
        Available: IPP Printer : 6-OPERA
        Available: IPP Printer : 6-RICOH
        Flavor chosen:text/html; charset="utf-16"; class="java.lang.String"
        Available printers for this flavor and this attribute set : 0
        Flavor chosen:application/octet-stream; class="java.io.InputStream"
        Available printers for this flavor and this attribute set : 2
        Available: IPP Printer : 6-OPERA
        Available: IPP Printer : 6-RICOH
        Flavor chosen:text/plain; charset="utf-8"; class="java.io.InputStream"
        Available printers for this flavor and this attribute set : 2
        Available: IPP Printer : 6-OPERA
        Available: IPP Printer : 6-RICOH
        Flavor chosen:text/plain; charset="utf-8"; class="java.io.InputStream"
        Available printers for this flavor and this attribute set : 2
        Available: IPP Printer : 6-OPERA
        Available: IPP Printer : 6-RICOH
        Flavor chosen:text/plain; charset="utf-16"; class="java.lang.String"
        Available printers for this flavor and this attribute set : 2
        Available: IPP Printer : 6-OPERA
        Available: IPP Printer : 6-RICOH  As you can notice, i get totally different results between my PC and my MAC.
    As a matter of fact, when i try to get all the flavors available on 6-OPERA, i get more or less 12 falvors available (when i try the test code from my PC) and 150 when i try the test code from my MAC.... i dont understand!!!
    I want to get more flavors available for 6-OPERA on my PC!!!
    so please help me understand this little problem
    Edited by: nicdo77 on Jan 15, 2008 12:13 PM

    Probably the easiest way to use an iPod on both Mac and Windows computers is to format the iPod (using iPod Updater) using the PC. This will force your iPod to use the Windows file system (FAT32) which both the Mac and PC can read from and write to without the help of additional software. Of course then all your software updates for the iPod will have to be done on Windows.

If you need to use a Mac (HFS+) formatted iPod on a Windows PC, you'll need to install some 3rd party software such as XPlay 2.0 (which you can get from MediaFour Software). This will enable your Windows PC to read a Mac-formatted iPod.

  • HT2513 I have a mac and an ipad.  when i create and ical event on my mac and then sync to my ipad, the event replicates;   however, when i create an ical event on my ipad and then sync, the ical event does not sync.

    Question:  I have a mac and an ipad.  when i create an ical event on my mac and then sync, the event transfers to my ipad. HOWEVER: when i create an ical event on my ipad and then sync, the event does not transfer.  what am i doing wrong???
    cadybill

    Greetings,
    Go to Apple > Software Update and install all available updates until no more are offered.
    On iPad go to Settings > General > Software Update and install any updates.
    Follow this article for issues with calendars: http://support.apple.com/kb/TS2481
    Hope that helps.

  • Convert pdf files into wiki pages, and export wiki pages as word and pdf files

    I am working on an enterprise wiki site collection inside my SharePoint server 2013. And there was a requirement to automatically generate wiki pages from word documents. As I read that the built-in service within SharePoint does not support importing the
    pictures within the word documents. So I looked into 3rd party tools and I settle on the “Kaboodle Word to Wiki” link
    which will manage to convert word docs into wiki pages, with only minor layout problems.
    But I want to know if there are additional tools which support the following:-
    Converting pdf files to SharePoint wiki pages.
    Exporting SharePoint wiki pages into pdf and word documents?
    Regards

    I haven't seen any third party tool converting pdf files to SharePoint wiki pages and and exporting SharePoint wiki pages into pdf and word files.
    You need to write custom feature where you can use iTextSharp pdf for pdf conversion. you can also check below blog which shows the export of SharePoint Wiki to Word/PDF without 3rd party tools:
    http://blogs.msdn.com/b/thomsven/archive/2011/09/09/export-sharepoint-wiki-to-word-pdf-without-3rd-party-tools.aspx
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.
    the link you posted is a manual process for converting wiki to pdf ,, i was looking for a tool which allow converting wiki to pdf ?

Maybe you are looking for

  • MX 6.1: ARGUMENT values in the wrong place

    Im having a very strange problem. I have a CF web service I am invoking and sending it several arguments. In one web service method it works fine and Im only sending 3 arguments. The other I am sending 6 and when I dump the ARGUMENTS arrary the value

  • How to monitor the size of message payload processed

    Hi all, where could i find the size of the message payload processed in monitor? i want to check the volumn of the payload, such as how much kb thanks in advance

  • REP-1213 Error

    Hi, I have created a Formula Column with PL/SQL function in a group query to generate a report. When I call this Formula Column from the report, an error occurs: "REP-1213 Field 'F_1' references column 'Trade_Disc' at a frequency below its group" How

  • SQL Expression returning too many results

    I am trying to display the value of a field in one table as a caption in the report header. This  caption is above a u2018descriptionu2019 field in the details section. When I run my report, I get  the description field displaying 832 times; which is

  • Loading Digital Signatures online

    Hello, I have a PDF that needs to be filled out, digitally signed, saved, and the retrieved whenever necessary, all online. All of that works just fine for plain text form fields, but when it comes to the Digital Signature, the field is rendered unsi