Caesar Cipher and non printing ascii

I am writing a program to implements the caesar cipher. For the program I am using ASCII code so my encryption algorithm is:
c = (p + k) mod 128
The only problem is, is that depending on the characters being encrypted and depending on the key I use some of the characters are encrypted to non-printing ascii characters such as 'del'.
So my code reads in the plain text from a file converts each character to ascii, encrypts each character using the key. It then writes the encrypted ascii values to a file as text (i.e. the character equivalent of the ascii).
If I do then encounter a non-printing ascii value it is written to the file as a square shape. Is there any way I can get around this?
Thanks for your help on the matter.
Wallace

Modify your encryption function so that it only covers those ASCII values that print, i.e. you need to implement the mod and + function yourself so that only good ASCII characters are considered.

Similar Messages

  • Processsing non-printing ASCII characters using ABAP

    Hi All,
    I would like to process a GUI field input that contains a non-printing ASCII character. It is actually from barcode being read into a GUI field that is then picked up by an ABAP program e.g. in readable format looks like this: 123456789 but actually contains a non-printing ASCII character (ASCII char 29) used as a data separator e.g. 1234<sep>567<sep>89.
    I would like to parse the input using ABAP at the non-printing ASCII character so that I have 3 variables A=1234 & B=567 & C=89.
    How should I best tackle this?
    Cheers,
    N.

    Pls check this...
    DATA: hx29 type x value '29'.
    data : wa_hx29(1).
    data : wa_str(30) type c.
    data : wa_str1(10),wa_str2(10),wa_str3(7).
    wa_hx29 = hx29.
    split wa_str at wa_hx29 into wa_str1 wa_str2 wa_str3.

  • Inserting strings of printable and non printable characters

    I would very much appreciate some help with the following
    To handle an interface with a legacy system I need to create strings containing both printable and non-printabel ascii characters. And with non printable characters I mean in particular those in the range of ASCII 128 to 159.
    It seems it is not possible to insert a string containting both printable and not printable characters from the afore mentioned range into a VARCHAR2 table column as the following demonstrates:
    insert into test values(chr(156)); -- this inserts the 'œ' symbol.
    SQL> select test, ascii(test), length(test), substr(test,1,1), ascii(substr(test,1,1))from test;
    TEST       ASCII(TEST) LENGTH(TEST) SUBSTR(TEST,1,1) ASCII(SUBSTR(TEST,1,1))
    ┐                  156            1That the the character mapped is shown as '┐' and not 'œ' is not really issue for my application, what is important is that the ASCII value is shown as 156, which is the ASCII code of the character I inserted.
    What is however strange (actually probably not strange but has to do with the lack of understanding of the issue at hand) is that substr returns an empty string...
    Now I try to insert a concatenated string, first the "non printable" character then a printable character
    insert into test values(chr(156)||chr(65));
    SQL> select test, ascii(test), length(test), substr(test,1,1), ascii(substr(test,1,1))from test;
    TEST       ASCII(TEST) LENGTH(TEST) SUBSTR(TEST,1,1) ASCII(SUBSTR(TEST,1,1))
    A                   65            1 A                                     65For some reason the not printable character (chr(156)) is now not inserted or at least does not appear when I selected the data from the table, this effect seems to apply to all characters in the range of ASCII 128 to 159 (tried some but not all) However for instance CHR(13) can be inserted as part of a string as shown above .
    For our application I really don't care much what character is shown or not show, what is important is that I can retrieve the ASCII value and that this value matches the one I inserted which for some reason does not seem to work.
    This seems to be, at least to some extent a character set issue. I have also tested this on a database with character sets set as follows
    NLS_CHARACTERSET
    WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    With WE8MSWIN1252 the described issue does NOT occur, however unfortunately I must use NLS_CHARACTERSET AL32UTF8 which produces the results as described above!
    As said any insights would be much appreciated as I am slowly but surely starting to despair.
    For completions sake, character sets are set as follows (changing it is NOT an option):
    NLS_CHARACTERSET
    AL32UTF8
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    The test table is created as follows
    CREATE TABLE TEST
    TEST VARCHAR2(1000 BYTE)
    Database Version 11.2.0.3.0
    Edited by: helios.taraba on Dec 2, 2012 10:18 AM --Added database version
    Edited by: helios.taraba on Dec 2, 2012 10:24 AM Added description of test results using NLS_CHARACTERSET WE8MSWIN1252

    Hello Orafad,
    Thanks for your reply, at least I understand the effects I'm seeing i.e.
    +"For multibyte character sets, n must resolve to one entire code point. Invalid code points are not validated, and the result of specifying invalid code points is indeterminate."+
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions026.htm
    You are absolutely right I could use chr(50579) to get the ligature symbol. However as what we are trying to achieve is to implement a legacy interface to a 20+ years old subsystem we are actually not so much interested in the symbol itself but rather in the ascii value of that symbol (156 as you so rightly point out in the win-1252 characterset), this particular field represents the lenght of the message being sent to the subsystem and can vary from decimal 68 to 164 and is also considered in a checksum calculation which is part of the message.
    As changing the nls_characterset of the database is not an option I guess I only have one reasonable avenue to resolve this namely to push the functionality to added the "encoded" length of the message (and the calculation of the checksum) to the java driver which is responsible for sending the message (tcp/ip) to the subsystem. Here we should not have any issues adding a byte with the value 156 (or any other for that matter) to the datastream.
    Thankfully all other fields have characters with ascii values below 128 and above 31.
    I'm going to leave my question as un-answered for a bit longer in the hopes of someone coming up with a golden bullet, although not getting my hopes up.
    Thanks, Helios

  • Differences between PDF (Interactive) and PDF (Print)

    What are the main differences between PDF (Interactive) and PDF (Print)?
    Now it seems to me that PDF (Interactive) is limited version of PDF (Print).
    Any links to read about this topic?
    Thank you in advance,
    Mykolas

    There's actually quite a few differences between (Interactive) and (Print).
    Here's a list of pointers written by Michael Ninness (previous product manager of InDesign and now working at Lynda.com) http://www.lynda.com/michaelninness
    I just got premission from him to post this (Thanks Michael!):
    Here is some info for you regarding what choices are being made under the hood when you choose File > Export > Adobe PDF (Interactive).
    Things that just happen or are included, with no choice in the dialog box:
    Hyperlinks, Bookmarks, Fast Web view, Compress Text and Line Art, Crop Image Data to Frames.
    Things that are not included, with no choice in the dialog box:
    Visible Guides/Grids, Hidden and Non-Printing Layers, Hidden and Non-Printing Objects, Marks & Bleeds, No Ink Manager or Simulate Overprint options.
    Things that you can choose:
    Security Settings, Embed Page Thumbnails, Create Tagged PDF, Create Acrobat Layers, Initial View, Initial Layout, Open in Full Screen Mode, Page Transitions, Image compression and resolution.
    Other:
    Fonts: Subset 100%
    Color Conversion: Destination
    Destination: sRGB
    Profile Inclusion Policy: Include Destination Profile
    Transparency Flattener: No Flattening
    And lastly, Compatibility is set to Acrobat 9 (PDF 1.7). This last point is important, and largely explains the main reason we split Interactive PDF out as a separate export choice from Print PDF. When you export an interactive PDF from CS5, included media is now written out to the Rich Media Annotation Layer, which means this content is played back via the embedded Flash Player within Acrobat Pro 9 or Adobe Reader 9 or higher. In previous versions, this content was written out to the Screen Annotation Layer, which meant this content was played back via QuickTime. This has been a long-standing headache for end users as playback across platforms was often inconsistent, would frequently break when Apple updated QuickTime, etc.
    Lastly, if you want to include rich media in your interactive PDFs (SWFs, audio and video), the only formats supported if you want to target Adobe PDF (Interactive) are MP3 for audio and FLV for video. Other file formats will need to be converted to these formats before you export to Interactive PDF. For video files, you’ll be able to convert to FLV with Adobe Media Encoder. For audio files, you can use any number for free audio conversion tools, including iTunes.
    Harbs

  • Non printing items still printing

    Hi.
    I have created in Indesign a 8 page pdf with hyperlinks (as a nav bar on each page)
    I have set the colourful headers and footers on each page as non printing.
    I am trying to create a PDF that will be colourful on screen, but when the browser goes to print it out the headers and footers will not output.
    trouble is, they are still printing
    I have tried exporting as smallest file/ high quality print and non printing options are ticked (otherwise the headers dont appear at all on screen)
    can this be done? if so, how?
    I have attached a sample file it has two objects in it:
    1) some text
    2) a magenta rectangle place over the text
    I am trying to acheive a pint rectangle on screen, and when the pdf is printed, no rectangle just text.

    You can't add a hyperlink to a button - but you can Convert something to a button and then give it a URL to go to when clicked.
    Basically you don't select the button and choose a hyperlink destionation the way you would with text, that won't work.
    Here's what to do.
    Select the frame that will be the button.
    Go to Window>Interactive>States
    In the fly menu for the States panel (top right of panel) click the arrow pointing down, and a sub menu pops out.
    Go to Button Options and to the tab that says "Behaviors"
    Event: Mouse Down
    Behavior: Go to URL
    URL: (insert the url)
    And then DON'T FORGET TO CLICK ADD at the bottom of the dialog box.
    And that's it. When you make the pdf make sure you inlcude interactive and bookmarks and everything else you need.

  • Find the Special character and non Ascii character

    Hi:
    i have table ,this table column name contain some datas like
    sno name
    1 CORPORATIVO ISO, S.A. DE C.V.
    2 (주)엠투소프트
    3 TIMELESS
    4 南京南瑞集团公司
    5 PHOTURIS
    6 Ace Informática S/C ltda
    7 Computacenter AG & Co. oHG
    8 아이티앤씨
    9 MOCA
    10 anbarasan
    my requirement:
    1)i need to search the name column where contain the special character and non ascii character..if found any non ascii or spcial character ..need to say flag ''yes".if not found need to say "no"...kindly help on this issus...

    i need some example..i am not have any idea....
    i have table ,this table column name contain some datas like
    sno name
    1 CORPORATIVO ISO, S.A. DE C.V.
    2 (주)엠투소프트
    3 TIMELESS
    4 南京南瑞集团公司
    5 PHOTURIS
    6 Ace Informática S/C ltda
    7 Computacenter AG & Co. oHG
    8 아이티앤씨
    9 MOCA
    10 anbarasan
    my requirement:
    1)i need to search the name column where contain the special character and non ascii character..if found any non ascii or spcial character ..need to say flag ''yes".if not found need to say "no"...kindly help on this issus...

  • Unable to print ASCII codes

    Hello,
    I am facing a problem in printing ASCII code between 128 and 159. these codes are displayed as '?'. All the other codes are printed correctly. Please let me know the reason behind this.
    Given below is the code for the same
    class Codes
         public static void main(String args[])
              short i = 165;
              for (i=0; i<=256;i+=5)
                   System.out.println(i+" "+(byte)i+" "+(i+1)+" "+(byte)(i+1)+" "+(i+2)+" "+(byte)(i+2)+" "+(i+3)+" "+(byte)(i+3)+" "+(i+4)+" "+(byte)(i+4));
    Waiting for a quick reply
    rgds,
    Sameer

    1. What are the chars you are talking about? As already mentioned, they are control chars in unicode. What character encoding would you like to use, or in other words, what characters would you like to have for those bytes?
    2. The character encoding of the dos console (Cp850 on the windozes I've used) is different from the system's default encoding (Cp1252, IIRC). This will cause problems if you want to print out text having non-ascii characters. For example System.out.println("&Aring;&Auml;&Ouml;") should print out the last three letters of the finnish alphabet but it prints something else instead. But if you write the text to a file it comes out as it should.
    Another character encoding can be used by wrapping an OutputStreamWriter around System.out:
    OutputStreamWriter osw = new OutputStreamWriter(System.out, "Cp850");
    PrintWriter out = new PrintWriter(osw, true);
    out.println("&Aring;&Auml;&Ouml;");
    Similarly, the input read through the standard inputstream in dos (the keyboard input or redirection using "<") is in another encoding and needs to be converted.

  • Caesar Cipher

    I'm trying to do a basic caesar cipher shift by 1. This is my code so far but its off by one letter. Could someone tell me whats wrong with it? Thx
         public void caesarCipher()
              char[] letters = {'A','B','C','D','E','F','G','H','I','J','K',
                        'L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
              for(int x=0; x<letters.length; x++)
                   int n=1;
                   letters[x]=letters[(x+n)%26];
                   System.out.print(letters[x]);
         }This is the output of this code:
    BCDEFGHIJKLMNOPQRSTUVWXYZB

    You start at the beginning of the array, modifying its contents, and at the end loop around to the beginning of the array again, after you have already modified that position.
    Don't even bother trying to encode it in-place. Create a new array for output.

  • Printing problem with Photoshop CS 6 extended and HP printer

    Hi all, long time browser, first time poster.
    This is a weird issue, it should be noted from the first that I only have weird computer issues. I work at a technical High School where we have the whole Adobe CS6 Extended suite installed. We are running it under a fully patched version of Windows 7 and all the CS6 updates have been applied on 25 machines that all have the same issue. The problem is that when the students go to print to our HP Color Laser jet CP6015DN, the job can been seen loading into the queue, it races up to about 45MB, then sort of strolls to load the rest of the document, usually about 59 to 75 MB's in size. Then I watch the message go to processing, the front panel of the printer says processing, then the print job disappears from the printer queue and the printer and there is no print out. I printed out the usage job log and it shows none of the failed attempts to print and I check the event log page which does not show the errors either.
    Looks like a bad printer driver, right? So I download the new HP Universal printer driver, I normally do not do the Universal driver route as so many of my older printers have problems with it, but the CP6015DN seems to have trouble accessing the extended tray 5 with the specific drivers, but I have the same printing issue with the new Universal driver and the PS driver. So I wander through the HP manual and it suggests using profiles to print to the printer and move the color handling from Printer Manages Colors to Photoshop manages colors and I track down the ICC profiles for the printer on the HP site as the link in the book is dead, so try the CP6015srgb_d50.icc, CP6015_cmyk_d50.icc and CP6015.icc, I try all of these profiles with the newest PS printer driver and the same error, goes to the printer and into the bit bucket. Still no printout or error message.
    Strange thing is that if I do a test print, it prints fine, if I open a tif file in Photoshop, it prints fine, now the teacher says if they print to the Xeorx 7760 in the next room, it also prints out fine. It should be noted that we had so many issues with configuring the Xerox and adjusting controls it was the reason we purchased a HP proofing printer in the first place. But the next door lab is all Apple, which doesn't seem to have this issue. So I open the test document and save it as a PDF file instead the native Photoshop format, and it prints fine, which from what I've been reading on the internet may be the preferred way of printing proofs, I don't know, I've never really used Photoshop, but the teacher says this isn't an acceptable fix and the students should be expected to manage a number of revisions saved to PDF format, me I just go up a number at the end of the file name for every correction when editing documents.
    Any suggestions you have would be appreciated.
    Windows 7 X64
    Photoshop version 13.0.1 x64
    HP Color Laserjet CP6015 DN model number Q3932A
    Dell Optiplex 980 i5-650,  3.2Ghz, 8 GB RAM.

    Yes, Photoshop is up to date at Version 13.0.6.  I have even gone so far as to uninstall CS 6 and put CS 5 back on and still the same thing.  This is really frustrating, the people at Canon try to be helpful but wind up saying it's an Adobe problem and of course you can't talk to real people anymore about CS 6.  My research on the Internet has turned up nothing so I'm stuck.

  • Text not printing or PDFing. Non-printing is not applied. Help?

    I have a logo. The top is on a path applied to an oval. Same with the bottom. In the middle is an ampersand (&). When I try to print, only the ampersand prints. I've tried printing to 2 different machines. I also tried saving it as a PDF but I lose everything except the ampersand in the middle. Everything is colored black, so there are no weird colors going on. Non-printing is not applied to anything. Any thoughts? I can send the file to somebody if they want to check it out.
    ID CS 3
    Thanks,
    Chris

    Sorry for the delay. Spent some time looking for the font becasue I'm on Windows.
    I opened it first in CS5, and after font substitution it exported fine, so I figured maybe it was a font problem on your end, but just to be safe I opened it in CS3 to check. Same problem here that you have on your end.
    Good news, though. I exported to .inx and opened that. That page opened at 11 inches high, which may be part of the problem, but after resizing, it exported correctly. This is a pretty good inidcator of some minor corruption that is fixable by the export. See Remove minor corruption by exporting

  • My Cox Cable/Telephone splits to a telephone modem and a broadband modem.  The BB connects via ethernet to a Cisco Linksys E2500 wi-fi (whatever).  Can I plug my usb printer into the E2500, configure, and then print from my iPad?

    I have just purchased an iPad 2.  I have wi-fi for roku and have connected the iPad to it.  I want to print to my usb printer.  My connection is:  Cox Cable spit to telephone and broadband.  The broad band feed goes to a Cox modem and feeds the wi-fi.  The Cisco Linksys E2500, wi-fi's the Roku and iPad.  Can I USB from the wi-fi to the printer, configure (however), and then print from my iPad?
    If not, how?
    All comments will be appreciated.
    Alan G. Watkins

    the ipad cannot airprint to a non airprint printer.... i think that the only solution is to install helper software on a computer that has an attached printer and share it through the computer only...computer would have to be always left on
    try this....http://www.collobos.com

  • Network printing: ipp "printer is busy"/LPD and AppSock prints garbled data

    Dear all,
    After months of trying on and off, I give up - I need help please. Since upgrading to Leopard, then Snow Leopard, I cannot print to the office computers. Windows or IPP printer settings produce the "printer is busy - wait 15 seconds" etc error message; LPD and AppSock printer settings enable data to get through, but the output is garbled text (the Adobe Postscript 3 engine on the printer isn't happy, obviously).
    We have some new colour copier/printers from FujiXerox (FX Docucentre IV C3370) and some older Canon laser printers (LBP5600), but they don't offer Bonjour connectivity and I am stuck. I can ping them, I have the latest drivers, but nothing works. They worked fine in OS10.4 on this same computer, and XP and Windows 7 of course in BootCamp, but nothing in OS10.5 or 10.6.
    I've been all over the web and through the Discussions forums and tried all the suggestions I can see, to no avail. I've tried KeyChains to carry by login ID and password to the machines, and deleting/adding printers through both the System Preferences and the CUPS interface, but I confess I am stuck. I currently copy all of my documents every day to a Dell desktop on my desk just to print them out.
    The Canons are run through a Windows server, the FujiXerox has a standalone IP address and no separate print queue at the moment. Running OS10.6.2 on MacBook Pro. I'm happily connected to the network and can access all sharepoints and servers, I just can print to any of the printers - it's infuriating.
    Is it a Firewall problem? Sub-net problems? Any ideas most welcome, thanks for looking and sorry if I've missed out anything important.

    MacJapan wrote:
    After digging around I found the Windows drivers are ART EX drivers; obviously that doesn't really come in Macintosh flavour, but FujiXerox do have a non-postscript driver for the machine which I downloaded. This time I could connect via LPD, as FujiXerox recommend, but the print job stalls at the spooling stage; the error message reads that the 'Library/Printers/FujiXerox/Filter/FXPSACMMFilter.bundle/Contents/MacOS/FXPSACM MFilter' failed.
    The filter bundle crashing could be related to permissions on the filter or a result of using a 32bit driver with a 64bit application.
    For the permissions, you could opening Terminal and entering the following text;
    sudo chown -R root:wheel /Library/Printers/FujiXerox/Filter/
    then press ENTER. You will be prompted to enter you user name and password. The user name needs to be an account that has admin rights to the Mac.
    Exit Terminal and restart the Mac. Now try printing again.
    Regarding the 64bit apps, these are the included SL apps like Preview, TextEdit and Safari. If you attempted to print with one of these apps when you got the error, you could try forcing the app to open in 32bit mode. This is done with the application closed. Locate the app with Finder and do a Get Info on the package (icon). There will be the option to 'Open in 32bit mode'. Select this, close the Get Info window and open the app. Now try a print.
    Regarding the Non-Postscript driver, looking at the FJ drivers web site, there are two of these drivers available. Both are showing as version 1.1, but the dates are different. Have a look at the following link to see if you have the one with the most recent date.
    http://onlinesupport.fujixerox.com/setupDriverForm.do?ctrycode=AU&lang_code=en&dlang=en&pid=DCIVC3370
    Greg's suggestion to use the Generic PCL is also a good alternative. One thing I did find however with the PCL5c is that it does not print in colour, even though it would suggest it does based on the name (the c normally indicates colour).
    Did you get the Canon LBP printing?
    Pahu

  • Exporting a PDF so that non-printing objects show but don't print?

    I've just spent a couple hours trying to find an answer to this in the forums, but can't. (The most frustrating was one thread where the original poster said, "I found the answer here," and gave a link that went right back to the main page of the forum. Argh.)
    Okay, anyway ... what I need to do?
    I've got a document with graphics that I want to show up on the pdf when I export it, but that--if a reader prints it--don't print.
    The document looks like a 3-ring binder with "tabs" for each section--just like the real thing. But the rings and tabs go right up to the edge and look terrible when printed, and whose printer can print right at the edge of the paper, anyway? But the tabs work as navigational links while looking a the pdf, and the rings just make it look cool, so I WANT them in the pdf.
    I've tried:
    Turning the entire layer into a non-printing layer (one that "shows" but does not "print"). But when I export it to a pdf, it doesn't show up on the pdf to look at OR to print. So that doesn't work.
    Using the Attribute option to turn each object into a non-printing object, but so far as I can tell, that doesn't do a thing, because they still print from the pdf.
    Exporting with the "create pdf layers" turned on and off. Exporting with the "include non-printing items" turned on and off.
    Basically, I've pretty much tried everything. I gather, from browsing the forums, that this is POSSIBLE, but can't for the life of me figure out what to do to make it happen. (Short of hiding the tabs' layer and creating an entirely separate PDF and calling it "Print version" which is not exactly what I want to do!)
    Is there maybe some magical combination of ons and offs I need to select to make this whole thing work?
    (And, seriously, am I the only person who thinks the supporting documentation is just dreadful? I can't find anything in any of the Help screens that even mentions this, much less explains how to do it.)
    Any help is appreciated!!
    --Deb

    Partial progress...
    The button option (and, I'm using CS3, by the way--I should have said that originally) does work in terms of showing on the pdf but not printing.
    The problem is that it messes up the way the document looks.
    I said it's designed to look like a 3-ring binder with tab-dividers between each section, and each tab has a hyperlink to take you to that section.
    Now, when you've got a paper binder in front of you, the tabs stay in the same sequence, and often overlap a bit (which mine do). The problem I'm having, having turned all of them into buttons, is that when you click on any of them, it "jumps" to the front of the row, so that they don't "flow" in the correct sequence.
    Am I explaining this well? You know, the top-most tab is at the top of the pile, the next one is always below it and above the third one, and so on ... you never see the second tab on TOP of the first one. I'm trying to get the document to act as close to a hard-copy binder as I can, and it did ... except the buttons keep jostling each other for attention...
    I'm going to go play around with this some more now, but ... any suggestions? (Other than restructuring my tabs so that they don't overlap at all?)

  • Non US-ASCII characters in download file names

    I am trying to implement a simple file download in a JSP, and trying to get IE, Firefox and Opera to all display and handle non US-ASCII characters in the suggested download file name. Only concerned with Windows platform for now. Here's the code I am currently using:
    String agent = request.getHeader("USER-AGENT");
    if (null != agent && -1 != agent.indexOf("MSIE"))
    String codedfilename = URLEncoder.encode(cfrfilename, "UTF8");
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition","attachment;filename=" + codedfilename);
    else if (null != agent && -1 != agent.indexOf("Mozilla"))
    String codedfilename = MimeUtility.encodeText(cfrfilename, "UTF8", "B");
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition","attachment;filename=" + codedfilename);
    else
    response.setContentType("application/x-download");
    response.setHeader("Content-Disposition","attachment;filename=" + cfrfilename);
    }This URL encodes the file name if the browser is IE, MIME encodes it if the browser is Mozilla, and sends plain UTF-8 (the encoding of the JSP) for all other browsers. I get "cfrfilename" from translated properties files, and the string can contain characters from any character set - Chinese, Thai, Korean, etc.
    This code works correctly for IE - the file name is displayed correctly in the file Save as dialog, and it is saved correctly on disk, no matter which character set is used.
    For Firefox, the file name is displayed correctly in the file Save as dialog, but it is only saved correctly to disk if the file name is in a character set supported by the system locale. This seems to be a known Firefox bug (not fully using the Windows Unicode APIs), so nothing I can do about that.
    Nothing seems to work for Opera, however - I cannot get the file name to display correctly in the file Save as dialog, no matter which method I use (I have tried URL encoding and MIME encoding in addition to the plain UTF-8).
    Has anybody implemented something similar that works for at least these 3 browsers?

    I tested your code today,
                         dialog           save           open
    Firefox 1.5          OK                 OK               OK
    IE 6.0                OK                 OK                NGdailog: filename show in download popup dialog
    save: save to disk from dialog
    open: open directly from dailog

  • Recent InDesign change suppresses non-printing layers when exporting to EPUB

    I hate it when development teams quiety "fix" features I've come to rely on.
    I am using InDesign CC 9.2.
    Until a recent update, when I exported a book to EPUB from InDesign, layers which were set to show but not print were included in the export. I relied on this because my documents include a non-printed Table of Contents block on the first page of each piece included in the anthology. This block causes the correct page to be set when generating the TOC (notice that it's on the page facing the title, not the title page itself) and is used to print the correct title on the title page of each story and running headers throughout the body.
    (An example document - Click for full size)
    Up to at least January 2014, when I exported to EPUB, that visible-but-not-printed block was included in the XHTML output. I could then modify CSS to optimize for e-reader display and the title and author names would appear at the top of each piece. Sometime within the past couple of months, that has changed: layers that are not printed also do not export to EPUB. This wouldn't be so big a problem except that the printed title in the image above also is not output to the EPUB file, because it's a text variable in the underlying master page.
    If you like reading and messing with markup, as I do, the next two images illustrate the problem.
    (The old output - Click for full size)
    The new output:
    (The new output - Click for full size)
    I have five volumes of the anthology so far (comprising roughly 30 stories each) with a new one coming out every three months. Now that this change has been thrown at me, I need to get it resolved or come up with a good workaround while I only have a couple hundred documents to update, instead of double that a year from now.
    Thank you for any help or suggestions you can provide!

    Going back through every document to override Master Page objects just to get the elements to export is not a realistic workaround.
    The change that suppresses visible but non-printing objects is annoying, but at least it's a documented change in 9.2. The change that suppresses all Master Page elements as well is not documented (or at least not documented in an obvious way) and so to me it's a bug.
    Ideally, if these new changes are required by some users, the old behavior could at least become an option: the export to EPUB dialog could add checkboxes for "Include non-printing objects" and/or "Include Master Page elements" so that users like me are not left with no way to continue to use existing functionality.

Maybe you are looking for