IBook starts typing strange characters

For seemingly no reason my iBook G4 switches over to typing nonsense characters at random times. I'll be midsentence and all of a sudden it types gibberish. Sometimes if I wait a bit it'll go back, but sometimes it lasts hours. Occasionally it switches back and forth, typing some normal letters and some weird characters. This seems to be going along with an issue when I startup of an unusual menu coming up that has a picture of the HD and a Refresh arrow on the left underneath and a right-pointing arrow (--->) on the right.
Obviously not being able to type is a huge problem and I can't seem to find any info on similar problems. Any ideas?

Wow -- this is really weird, and the problem must be relatively common for lots of Tiger users!
The DEFAULT Keyboard shortcuts for BOTH the SPOTLIGHT Window AND to move from one kind of keyboard to another is Command-Option-Space. I had selected three optional keyboards in the INTERNATIONAL LIST because I sometimes type Spanish or Portuguese documents.
Sometimes (who knows when) when I thought I was summoning SPOTLIGHT window, I was shifting to another keyboard configuration.
For the time being, I have disabled the keyboard shortcut (which you can get to from either the Keyboard or the International panes of the System Preferences. But I'm wondering now how to change the key assignment for the OS shortcuts (I know how to do it inside some appllications, of course, but not how to CHANGE OS-level shortcuts.
Anyway, thanks Neil for solving the big problem.
bruce
iBook G4 Mac OS X (10.4.7)

Similar Messages

  • My logitech external keyboard started typing strange figures and takes a photo each time I press delete. Ipad internal keyboard works fine. Btooth etc all connected. Hapened suddenly.

    My logitech external keyboard started typing strange figures and takes a photo each time I press delete. Ipad internal keyboard works fine. Btooth etc all connected. Happened suddenly.Did I press a strange key somehow??

    Thank you but - Are there batteries?? Is it not wireless? Very thin and I would have no ideas where batteries were?

  • Strange characters and symobls print in the middle of a print job. Help.

    In the middle of a print job, whether one page or several, it starts printing strange characters and symbols until the end of the job.  It will do this in the middle of the page, or after printing one line of English and the rest of the page in gibberish.
    It usually does this while printing off bank statements from the internet or a pdf file pulled from the internet.  I don't think it has ever printed any of my documents.
    However, it has done this while printing a bill received as an attachment to an email from a friend.
    The next print job will usually be back to "normal".  But one day, it did this many times during the day.  Frustrating!
    Appreciate any help.

    I had this happen to me with a PDF file once.  I called Support at HP, 
    and they told me it was because I had labeled the PDF as "text" when
    it actually has (technically) "pictures" in it -- the printer didn't know how
    to print those "pictures" (symbols?) as "text," so it came out as gibberish.
    Perhaps there's a teckie here who can tell you more eloquently.  [And
    what to do about it!]
    HTH!

  • Keyboard start typing and make "Funk" sound by itself after upgrading to OS X Mavericks

    After I upgraded to OS X Mavericks, whenever I press the Home key (↖︎) OS X starts typing "~6" characters in Terminal and making the sound called "Funk".
    Also this happens after wake up and power up and randomly.
    On the login screen it always start making the "Funk" sound like crazy.
    I did reset keyboard shortcuts, removed and closed running programs, changed keyboard layouts, reset SMC and PRAM, but I can't stop it happening. I can induce it by pressing the Home key in terminal and wake up from sleep, but other cases I don't know what causes this. The problem appear just randomly even when I'm using the computer or not...
    This is driving me crazy.

    This helped me: https://discussions.apple.com/message/21185411#21185411 (Probably)
    Restarting, sleep mode, shut down doesn't seem to have any effect. I plugged out, plugged in, the problem still occured. I restarted, and put it in a different USB port and seems to be solved now.

  • When I create a new email and start typing, I get an error after two characters

    This has been bothering me for months.
    When I create a new email and start typing, I get an error after two characters (see below). I thought maybe it was a particular person's contact, or it was because I typed too fast, but it is not. Doesn't matter what email address I use, or how long I wait, the first address errors and I have to erase it and start over. Sometimes I have to try several times.
    Very annoying. I am using the latest build of Safari on a Mac.
    Any help would be greatly appreciated.
    Bryan
    <Image Edited for Personal Information>

    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    See also [[Basic Troubleshooting|#Make_a_new_profile|Basic Troubleshooting: Make a new profile]]

  • I click on a link or start typing text in a box on a webpage, any page, and the browser window either randomly changes size, reduces & goes to the toolbar, or some other strange random thing occurs. Why is this?

    Whenever I am using Firefox, when I am on a webpage (any webpage) & I either click on a link in that page, start typing in a box, click on a button, or click on a tab, the browser window either reduces to the toolbar, or just changes size, usually from full-screen to 2/3 of its size. I reinstalled Firefox (downloaded from the web) after wiping my hard drive because I was having so many problems from my browser constantly crashing, to the computer itself crashing often, to the computer running exceptionally slow. At first everything seemed fine. But then after having opened my computer a few times, a few different windows began to freeze, then that stopped, then this thing with the browser started a few times later after opening it. Now it does it every time I open it. Also, whenever I try to click on a button on other windows on my computer, I get the 'warning' sound, nothing happens, then after a couple more tries, the button works. All of this is just weird. I had antivirus protection on my computer, but it apparently did not catch whatever virus infected my computer, or the damage was already done when it did get it. I thought once the hard drive was wiped, that everything would be ok, but then these weird things began to start up, and now I am wondering.... Of course, it could also be something wrong with the browser, too. I've also had some trouble getting my printer to working again, but I've managed to solve that problem.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • Strange characters starting to pop up everywhere, why?

    so ive been using arch for quite a while now but recently ive noticed something very strange, that never occured before
    why are theese strange characters showing up all over the place? 
    (in the password box it used to have ******* , now it has YYYYYYY, wtf?)
    Last edited by tjwoosta (2009-04-04 02:00:19)

    molom wrote:That's obviously a font problem, change your font and see if the same thing happens.
    BTW does it only happen on Firefox?
    hmm
    its just strange because ive been using the same font ever since installing but ive never seen theese characters
    and afaik yes its only with firefox
    edit: also i just noticed but its all like that in the firefox menus too, but not in any other programs menus
    Last edited by tjwoosta (2009-04-04 02:14:56)

  • HT3964 When typing into forms, such as filling out a contact sheet on a website, my first few letters will not appear when i start typing. For example, if I wanted to type "explanation", i might end up with "laxation". This happens in all browsers.

    When typing into forms, such as filling out a contact sheet on a website, my first few letters will not appear when i start typing. For example, if I wanted to type "explanation", i might end up with "laxation". This happens in all browsers.
    If i backspace everything and start typing again in the same area, it will work properly the second time.
    I am using a ~7 month old macbook air with mavericks.
    Any tips to get rid of this issue would be greatly appreciated.

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve your problem.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. All it does is to gather information about the state of your computer. That information goes nowhere unless you choose to share it on this page. However, you should be cautious about running any kind of program (not just a shell script) at the request of a stranger on a public message board. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.
    Here's a summary of what you need to do, if you choose to proceed: Copy a line of text from this web page into the window of another application. Wait for the script to run. It usually takes a few minutes. Then paste the results, which will have been copied automatically, back into a reply on this page. The sequence is: copy, paste, wait, paste again. Details follow.
    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply.
    6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking  anywhere in the line. The whole line will highlight, though you may not see all of it in your browser, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin; clear; Fb='%s\n\t(%s)\n'; Fm='\n%s\n\n%s\n'; Fr='\nRAM details\n%s\n'; Fs='\n%s: %s\n'; Fu='user %s%%, system %s%%'; PB="/usr/libexec/PlistBuddy -c Print"; A () { [[ a -eq 0 ]]; }; M () { find -L "$d" -type f | while read f; do file -b "$f" | egrep -lq XML\|exec && echo $f; done; }; Pc () { o=`grep -v '^ *#' "$2"`; Pm "$1"; }; Pm () { [[ "$o" ]] && o=`sed -E '/^ *$/d; s/^ */   /; s/[-0-9A-Fa-f]{22,}/UUID/g' <<< "$o"` && printf "$Fm" "$1" "$o"; }; Pp () { o=`$PB "$2" | awk -F'= ' \/$3'/{print $2}'`; Pm "$1"; }; Ps () { o=`echo $o`; [[ ! "$o" =~ ^0?$ ]] && printf "$Fs" "$1" "$o"; }; R () { o=; [[ r -eq 0 ]]; }; SP () { system_profiler SP${1}DataType; }; id -G | grep -qw 80; a=$?; A && sudo true; r=$?; t=`date +%s`; clear; { A || echo $'No admin access\n'; A && ! R && echo $'No root access\n'; SP Software | sed '8!d;s/^ *//'; o=`SP Hardware | awk '/Mem/{print $2}'`; o=$((o<4?o:0)); Ps "Total RAM (GB)"; o=`SP Memory | sed '1,5d;/[my].*:/d'`; [[ "$o" =~ s:\ [^O]|x([^08]||0[^2]8[^0]) ]] && printf "$Fr" "$o"; o=`SP Diagnostics | sed '5,6!d'`; [[ "$o" =~ Pass ]] || Pm "POST"; p=`SP Power`; o=`awk '/Cy/{print $NF}' <<< "$p"`; o=$((o>=300?o:0)); Ps "Battery cycles"; o=`sed -n '/Cond.*: [^N]/{s/^.*://p;}' <<< "$p"`; Ps "Battery condition"; for b in Thunderbolt USB; do o=`SP $b | sed -En '1d;/:$/{s/ *:$//;x;s/\n//p;};/^ *V.* [0N].* /{s/ 0x.... //;s/[()]//g;s/(.*: )(.*)/ \(\2\)/;H;};/Apple|SMSC/{s/.//g;h;}'`; Pm $b; done; o=`pmset -g therm | sed 's/^.*C/C/'`; [[ "$o" =~ No\ th|pms ]] && o=; Pm "Thermal conditions"; o=`pmset -g sysload | grep -v :`; [[ "$o" =~ =\ [^GO] ]] || o=; Pm "System load advisory"; o=`nvram boot-args | awk '{$1=""; print}'`; Ps "boot-args"; a=(/ ""); A=(System User); for i in 0 1; do o=`cd ${a[$i]}L*/Lo*/Diag* || continue; for f in *.{cr,h,pa,s}*; do [[ -f "$f" ]] || continue; d=$(awk '/^D/{print $2; exit}' "$f"); [[ "$f" =~ h$ ]] && grep -lq "^Thread c" "$f" && e=\* || e=; echo $d ${f%_$d*} ${f##*.} "$e"; done | tail`; Pm "${A[$i]} diagnostics"; done; [[ "$o" =~ \*$ ]] && printf $'\n* Code injection\n'; o=`syslog -F bsd -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|last value [1-9]|n Cause: -|NVDA\(|pagin|SATA W|ssert|Throt|timed? ?o' | tail -n25 | awk '/:/{$4=""; $5=""};1'`; Pm "Kernel messages"; o=`df -m / | awk 'NR==2 {print $4}'`; o=$((o<5120?o:0)); Ps "Free space (MiB)"; o=$(($(vm_stat | awk '/eo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0)); Ps "Pageouts (MiB)"; s=( `sar -u 1 10 | sed '$!d'` ); [[ s[4] -lt 85 ]] && o=`printf "$Fu" ${s[1]} ${s[3]}` || o=; Ps "Total CPU usage" && { s=(`ps acrx -o comm,ruid,%cpu | sed '2!d'`); n=$((${#s[*]}-1)); c="${s[*]}"; o=${s[$n]}%; Ps "CPU usage by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; }; s=(`top -R -l1 -n1 -o prt -stats command,uid,prt | sed '$!d'`); n=$((${#s[*]}-1)); s[$n]=${s[$n]%[+-]}; c="${s[*]}"; o=$((s[$n]>=25000?s[$n]:0)); Ps "Mach ports used by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; o=`kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1`; Pm "Loaded extrinsic kernel extensions"; R && o=`sudo launchctl list | awk 'NR>1 && !/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'`; Pm "Extrinsic daemons"; o=`launchctl list | awk 'NR>1 && !/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'`; Pm "Extrinsic agents"; o=`for d in {/,}L*/Lau*; do M; done | grep -v com\.apple\.CSConfig | while read f; do ID=$($PB\ :Label "$f") || ID="No job label"; printf "$Fb" "$f" "$ID"; done`; Pm "launchd items"; o=`for d in /{S*/,}L*/Star*; do M; done`; Pm "Startup items"; o=`find -L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB\ :CFBundleIdentifier "$d/Info.plist") || ID="No bundle ID"; [[ "$ID" =~ ^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|\.hpio|JMicron|microsoft\.MDI|print|SoftRAID ]] || printf "$Fb" "${d%/Contents}" "$ID"; done`; Pm "Extrinsic loadable bundles"; o=`find -L /u*/{,*/}lib -type f | while read f; do file -b "$f" | grep -qw shared && ! codesign -v "$f" && echo $f; done`; Pm "Unsigned shared libraries"; o=`for e in INSERT_LIBRARIES LIBRARY_PATH; do launchctl getenv DYLD_$e; done`; Pm "Environment"; o=`find -L {,/u*/lo*}/e*/periodic -type f -mtime -10d`; Pm "Modified periodic scripts"; o=`scutil --proxy | grep Prox`; Pm "Proxies"; o=`scutil --dns | awk '/r\[0\] /{if ($NF !~ /^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./) print $NF; exit}'`; Ps "DNS"; R && o=`sudo profiles -P | grep : | wc -l`; Ps "Profiles"; f=auto_master; [[ `md5 -q /etc/$f` =~ ^b166 ]] || Pc $f /etc/$f; for f in fstab sysctl.conf crontab launchd.conf; do Pc $f /etc/$f; done; Pc "hosts" <(grep -v 'host *$' /etc/hosts); Pc "User launchd" ~/.launchd*; R && Pc "Root crontab" <(sudo crontab -l); Pc "User crontab" <(crontab -l | sed -E 's:/Users/[^/]+/:/Users/USER/:g'); R && o=`sudo defaults read com.apple.loginwindow LoginHook`; Pm "Login hook"; Pp "Global login items" /L*/P*/loginw* Path; Pp "User login items" L*/P*/*loginit* Name; Pp "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed -E 's/(\..*$|-[1-9])//g'; o=`find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l`; Ps "Restricted user files"; cd; o=`SP Fonts | egrep "Valid: N|Duplicate: Y" | wc -l`; Ps "Font problems"; o=`find L*/{Con,Pref}* -type f ! -size 0 -name *.plist | while read f; do plutil -s "$f" >&- || echo $f; done`; Pm "Bad plists"; d=(Desktop L*/Keyc*); n=(20 7); for i in 0 1; do o=`find "${d[$i]}" -type f -maxdepth 1 | wc -l`; o=$((o<=n[$i]?0:o)); Ps "${d[$i]##*/} file count"; done; o=; [[ UID -eq 0 ]] && o=root; Ps "UID"; o=$((`date +%s`-t)); Ps "Elapsed time (s)"; } 2>/dev/null | pbcopy; exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    7. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Click anywhere in the Terminal window and paste (command-V). The text you pasted should vanish immediately. If it doesn't, press the return key.
    8. If you see an error message in the Terminal window such as "syntax error," enter
    exec bash
    and press return. Then paste the script again.
    9. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know your password, or if you prefer not to enter it, just press return three times at the password prompt.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    10. The test will take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line "[Process completed]" to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report your results. No harm will be done.
    11. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
    Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Terms of Use of Apple Support Communities ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Strange characters instead of PDF-file

    when I forward to a servlet called Test.java, my browser return a PDF file.
    but when I write the method of the servlet in a bean, called WinkelWagen.java, and I write the rest of the code of the servlet in a jsp file (pdf.jsp, this jsp calls the method in the bean) I only get strange characters returned by my browser and Acrobat Reader doesn't run.
    the code of the servlet Test.java:
    package be.steppe.cursusdienst.pdf;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.io.ByteArrayOutputStream;
    import java.io.PrintWriter;
    import be.steppe.cursusdienst.instellingen.Variabelen;
    import be.steppe.cursusdienst.beans.WinkelWagen;
    import be.steppe.cursusdienst.Product;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    public class Test extends HttpServlet
         public Test()
              super();
         public void doGet(HttpServletRequest req, HttpServletResponse resp)
              throws javax.servlet.ServletException, java.io.IOException
              DocumentException ex = null;
              ByteArrayOutputStream baosPDF = null;
              //HttpSession session = req.getSession(true);
              //WinkelWagen ww = (WinkelWagen) req.getAttribute("winkelWagen");
              //Vector vector = new Vector();
              //vector = ww.genereerFormLijst();
              try
                   baosPDF = fix();
                   StringBuffer sbFilename = new StringBuffer();
                   sbFilename.append("filename_");
                   sbFilename.append(System.currentTimeMillis());
                   sbFilename.append(".pdf");
                   resp.setHeader("Cache-Control", "max-age=30");
                   resp.setContentType("application/pdf");
                   StringBuffer sbContentDispValue = new StringBuffer();
                   sbContentDispValue.append("inline");
                   sbContentDispValue.append("; filename=");
                   sbContentDispValue.append(sbFilename);
                   resp.setHeader("Content-disposition",sbContentDispValue.toString());
                   resp.setContentLength(baosPDF.size());
                   ServletOutputStream sos;
                   sos = resp.getOutputStream();
                   baosPDF.writeTo(sos);
                   sos.flush();
              catch (DocumentException dex)
                   resp.setContentType("text/html");
                   PrintWriter writer = resp.getWriter();
                   writer.println(
                             this.getClass().getName()
                             + " caught an exception: "
                             + dex.getClass().getName()
                             + "<br>");
                   writer.println("<pre>");
                   dex.printStackTrace(writer);
                   writer.println("</pre>");
              finally
                   if (baosPDF != null)
                        baosPDF.reset();
         protected ByteArrayOutputStream fix() throws DocumentException {
              Document doc = new Document();
              ByteArrayOutputStream baosPDF = new ByteArrayOutputStream();
              PdfWriter docWriter = null;
              try
                   docWriter = PdfWriter.getInstance(doc, baosPDF);
                   doc.addAuthor(this.getClass().getName());
                   doc.addCreationDate();
                   doc.addProducer();
                   doc.addCreator(Variabelen.getPdfAuteur());
                   doc.addTitle("BESTELLING");
                   doc.setPageSize(PageSize.LETTER);
                   HeaderFooter footer = new HeaderFooter(
                                       new Phrase("BESTELLING     ID:           GEPLAATST DOOR:"),
                                       false);
                   doc.setFooter(footer);
                   doc.open();
    /*                for(int i = 0 ; i < vector.size() ; i++) {
    *                doc.add(new Paragraph( ((Product) vector.elementAt(i)).getProductId() ));
                   doc.add(new Paragraph(
                                  "This document was created on "
                                  + new java.util.Date()));
              catch (DocumentException dex)
                   baosPDF.reset();
                   throw dex;
              finally
                   if (doc != null)
                        doc.close();
                   if (docWriter != null)
                        docWriter.close();
              if (baosPDF.size() < 1)
                   throw new DocumentException(
                        "document has "
                        + baosPDF.size()
                        + " bytes");          
              return baosPDF;
    }The code of the bean:
    package be.steppe.cursusdienst.beans;
    import java.util.Vector;
    import be.steppe.cursusdienst.Product;
    import be.steppe.cursusdienst.FormProduct;
    import java.io.*;
    import be.steppe.cursusdienst.instellingen.Variabelen;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    public class WinkelWagen implements Serializable {
      private Vector producten;
      public WinkelWagen() {
        producten = new Vector();
      public void voegProductToe(Product p) {
        producten.addElement(p);
      public Vector haalProducten() {
        return producten;
      public void verwijderProduct(int pId) {
        for(int i = 0 ; i < producten.size() ; i++) {
          if(pId == ((Product) (producten.elementAt(i))).getProductId()) {
            producten.removeElementAt(i);
            break;
      public void maakWinkelWagenLeeg() {
        producten.removeAllElements();
      public Vector genereerFormLijst() {
        int aantal = 0;
        Vector lijst = new Vector();
        boolean alInLijst;
        for(int i = 0 ; i < producten.size() ; i++) {
          aantal = 0;
          int prodId;
          alInLijst = false;
          Product p = (Product) producten.elementAt(i);
          prodId = p.getProductId();
          for(int l = 0 ; l < lijst.size() ; l++) {
            if(prodId == ((FormProduct) (lijst.elementAt(l))).getProductId()) {
              alInLijst = true;
          if(!alInLijst) {
            for(int q = 0 ; q < producten.size() ; q++) {
              if(prodId == ((Product) (producten.elementAt(q))).getProductId()) {
                aantal++;
            int pId = ((Product) (producten.elementAt(i))).getProductId();
            String tNaam = ((Product) (producten.elementAt(i))).getTypeNaam();
            String tit = ((Product) (producten.elementAt(i))).getTitel();
            String omschr = ((Product) (producten.elementAt(i))).getOmschrijving();
            double pr = ((Product) (producten.elementAt(i))).getPrijs();
            int hoev = ((Product) (producten.elementAt(i))).getStock();
            FormProduct formProduct = new FormProduct(pId,tNaam,tit,omschr,pr,hoev,aantal);
            lijst.addElement(formProduct);
          return lijst;
        public double berekenTotaal() {
          double totaal = 0;
          for(int i = 0 ; i < producten.size() ; i++) {
            Product p = (Product) producten.elementAt(i);
            totaal = totaal + p.getPrijs();
          return totaal;
        public ByteArrayOutputStream fix() throws DocumentException {
             Vector vector = genereerFormLijst();
             Document doc = new Document();
              ByteArrayOutputStream baosPDF = new ByteArrayOutputStream();
              PdfWriter docWriter = null;
              try
                   docWriter = PdfWriter.getInstance(doc, baosPDF);
                   doc.addAuthor("author");
                   doc.addCreationDate();
                   doc.addProducer();
                   doc.addCreator(Variabelen.getPdfAuteur());
                   doc.addTitle("BESTELLING");
                   doc.setPageSize(PageSize.LETTER);
                   HeaderFooter footer = new HeaderFooter(
                                       new Phrase("BESTELLING     ID:           GEPLAATST DOOR:"),
                                       false);
                   doc.setFooter(footer);
                   doc.open();
                   for(int i = 0 ; i < vector.size() ; i++) {
                   doc.add(new Paragraph( ((FormProduct) vector.elementAt(i)).getProductId() ));
                   doc.add(new Paragraph(
                                  "This document was created on "
                                  + new java.util.Date()));
              catch (DocumentException dex)
                   baosPDF.reset();
                   throw dex;
              finally
                   if (doc != null)
                        doc.close();
                   if (docWriter != null)
                        docWriter.close();
              if (baosPDF.size() < 1)
                   throw new DocumentException(
                        "document has "
                        + baosPDF.size()
                        + " bytes");          
              return baosPDF;
    }the code of the JSP-file
    <html>
    <head>
    </head>
    <%@ page import="java.io.ByteArrayOutputStream" %>
    <%@ page import="java.io.PrintWriter"%>
    <%@ page import="be.steppe.cursusdienst.instellingen.Variabelen"%>
    <%@ page import="be.steppe.cursusdienst.beans.WinkelWagen"%>
    <%@ page import="be.steppe.cursusdienst.Product"%>
    <%@ page import="java.util.*" %>
    <%@ page import="com.lowagie.text.*" %>
    <%@ page import="com.lowagie.text.pdf.*" %>
    <jsp:useBean class="WinkelWagen" id="winkelWagen" scope="session" />
    <body>
    <%
    ByteArrayOutputStream baosPDF = null;     
    try
                   baosPDF = winkelWagen.fix();
                   StringBuffer sbFilename = new StringBuffer();
                   sbFilename.append("filename_");
                   sbFilename.append(System.currentTimeMillis());
                   sbFilename.append(".pdf");
                   response.setHeader("Cache-Control", "max-age=30");
                   response.setContentType("application/pdf");
                   StringBuffer sbContentDispValue = new StringBuffer();
                   sbContentDispValue.append("inline");
                   sbContentDispValue.append("; filename=");
                   sbContentDispValue.append(sbFilename);
                   response.setHeader("Content-disposition",sbContentDispValue.toString());
                   response.setContentLength(baosPDF.size());
                   ServletOutputStream sos;
                   sos = response.getOutputStream();
                   baosPDF.writeTo(sos);
                   sos.flush();
              catch (DocumentException dex)
                   response.setContentType("text/html");
                   PrintWriter writer = response.getWriter();
                   writer.println(
                             this.getClass().getName()
                             + " caught an exception: "
                             + dex.getClass().getName()
                             + "<br>");
                   writer.println("<pre>");
                   dex.printStackTrace(writer);
                   writer.println("</pre>");
              finally
                   if (baosPDF != null)
                        baosPDF.reset();
    %>
    </body>
              </html>can anyone please help me out ...
    gr
    Steppe

    ok,
    I removed the html tags in the jsp-file and now acrobat reader does start.
    but it says the pdf file is damaged and cannot be repaired ...
    any ideas?
    gr
    Steppe

  • Adobe Reader displaying strange characters

    Hello! I am writing my uni task. For that I downloaded a .pdf document from my university, which has text boxes for me to fill in. I do not know how/with which program this file was created. I first tried dealing with it using the Windows 8 Reader app. Several times, when I switched from the document to the Desktop and back, all my text was converted into strange characters. I started saving the document before switching, and this seemed to solve the problem at first. But then at some point I saved and closed it, and when I opened it the next time, only the box I modified last (with an essay) was converted into strange characters. When I copy it somewhere, the text does not appear. I tried opening the thing with Adobe Reader. It does not convert anything into weird symbols, but the ones from the previous time remain. Is there any way I can get the information back?
    Here's the whole 'strange character' bit:
    ý«†z´y,o/>§™I$2ž|‘M¥8"Žb2;¸[áÔeìb⁄æÉ÷ײݵßScÄ−¹<¹˚ëÞG+VW5²!1°%ZÔ;‘ƒÀ¤|ªł.W‚nb·Ü`ø}=†mû⁄À¦• ¸ßÁºþÜ”ãØˇÂ²ÑrŸ–)·ô†+Ù˘¬ì¶4<Àqc.®ªSG”˛¹„+ö:@€‚Å˝å²M«ÚŸ/E¼¿flüUÌÈü…qªÉ³pÉ2ôù$fiÍævflÓrîsƒr6@_ 8;¢DîuAÑ˙Ô¨ÿ,s<“Ñ·Ü䙟tàZ,Ö½¨#ee˚˛üBwê!MŠU¸Ÿ€¹*øƒN‰×{hø?;Ô·Î'k$;Í÷Qýw~&—ł„Aå”MTì¹⁄¿tË@˘/J ÿóS˝
    ý_l'Di
    õ#J³ß0O8Á@žöÃfB%Ôî{
    Ûõz8Á&´ØëU^¤mDèüV½â~žË@ØÀ*Ý−›D‘–l@šTÁ–U-§þR˘
    çU ió¦(fH€RBRK%nÁ0þ$½Œ‰¢@˛x§{±'QRÕéKŵ«uÌ2>å΂úëoNH¢-c|d‰AOÓÎgS×eGzł⁄Dd¢&łEyþ•½w;;"÷+B‰
    Á ‹rn+8‰|JeÐ˙Š6Âî÷;x^¯~j⁄TÓa¦O˙qé=:*v¬à^!·þá¡®SL=Ìáh)¬øxthj™ŽÁ–½…¬Ü‚łþ ÇÌÌ„¶"KÉ4$ô‰'š−°íŽùÜÑHÜ>o¶y%˛U(Í÷f–wøÙ±⁄[¢ý [Å‚Œ‘ß?˛−dĹ–ï4¾&ôzÚÃSåÁ¡Ëä¡¡DG¡ŁøO7øã|ò‹áï…Q³Ê;˚@w|¤C¡¨ÝôÏŽ´ÎgÙ¿ö—‡óÊ—F¼ñ}¢¡ù¹ê˜Š˜Û›·«íÿ `Qùж×g”˛Ï;–úÍ‹OU'†ah„y’‹èa´ŸÏ°èwP׃—‚
    üp˝qŸ±æŸøŒ¼ýìł˝‡u‚dSf0ùÉ\FŽ˛¤mW;ôͤäühUÙv˛˛¯aˆý1Ø`âÇ˝òX>&
    éÝߊɉ˛>á–·ÈýùÒ…ªŁ =fi‡llv¸èøÜ÷~ûº÷0flÁMndejŽf-&°H.¥æµÁ⁄'¤zJÚª6•ç9¿öÝd-iðcÐöz›
    »}g¤ł)4¡PŽXüª¤ÌT«¦Èl©œºG£§3êêH˜-]ûß˝%ëÐh›WÔ˘˜B–Ùî!)CÃäÁ?P–»˝Û¥¬|T‰ÆÈà⁄A*(é2QÓJx™K?ÔöGwìŒÝz HèÓT•²‹ÿf~SzúúDQ]ü“¥‘fitú¸E_afN"³~/flõ˘§˚Þ§²UÉùtN&º¬tÆ#uzMP=<÷û‹˜¸ù−HùS>šˆ]1]¨—˜ÖhÌŁ\°rv˘þ
    ‚ãÓ»¬‘ŽVÏ°ÕL0H90chÃM®yb¶§J•V"çµÅ/”€Ðk⁄iÑNÚhd@£|ös‚÷Þ‚´k§)äoıÃLöÒ5ɺ°›îEÀ‚Ä–ç±]ꚧýE›=q¸÷ÿü žDe¾xüı¡:&˚B¢‰jÈMö6»ł¬6 /å•‚ÚÿÊ Ó±t'ùT㓵ëS
    ~J[DÜiîœ[þpéjDævø@ÊäsߎÈØïÅàUÛÏwå&¼t−©•ır
    —õ¹íOòꤥ²`÷LZKrd€J6ÄÎÛÅ−|W0Nš¸@…r«qt’liÑçÌY’æÙ!“Sâ<†Æh‡z|4Aš*£fl˜ôñsÁʘl±W²
    ï¦ncÓ,»ÒùYµÛ™'T©Ì727˝^2?rNË˚Ç¡¿¢+ßu–H2e¸©CB#˚ÁºƒâÇÅÖK−"2ÍiŸRO0 ›^"˛"−âÉ×íôòCBí[aõãÑ,¶^³Nh–S¨íï?Øł9r\¦7
    kg‚Á¤0?t Éà(Ô$>x·k(™Š°µ˘Xòþ÷£−»á€IâyòLl3DõËò0TËÌåk–fi¶åA3Õ¨gˇÿüf‘±yùÈ{¦›—šÃ§®ãI;ûwhȘ4ZUdv-y‚t|jrÆÛ +/ÞŁ(kł¬<¡e:˙O[Ê'–6ö¨M¦«ïæÈž§$4Nœ9Ú¢½òìóvàfl˜÷§Ñflgd¦³N³í[´Ì%Q5r˜Ýl
    ÛpXøïåwü—Ö²¯ê⁄ûiıÎÖ„&´ø¥º¾¬(m‘iAŽéü_œé°&LøÊhÚü³œcÞ÷hR™ÌIª3U7áõüXT¡`s¥˚“ˇÂŽ
    Î@ÔrÞ+dµ˝LA>]t;pˆZע—Øi'çÞŠ¿
    kª"~ýl5fi,ÿ6uP&‹ã+‚¨(̯K_è“å$ÍÁº#F¤Ö¦ø˝ÿµuX6_−
    Ëp¼Me‹¿ùöÖ°bS<¯¥P©ú½éÀ
    î e½íšND¿“N®”Z(ß(j%;=Há–®† A.fl*
    9Ï−²È§™,ÐS2AÒÀ!ÇÜMRœê‰G£þÜàOB˙_⁄˚7‡¶»²j÷ÅÚe½*x¢˝¸‚©nSŸ!ÃùGtÕP7&ł½R7(ýñ‹ÿAæ¦?|uÐWƒ˜¯¬BHj`êf Ì]3Ýßäîe˛
    qË}óÉSŁ¢S“†#å*‹3I@†®ï#eVç>0×sI›åRþPuÙ'sèf§È'™BV͵ƒ˘vÅ¢ùÁÍu/¬A¬3`¶¥ô*®ŽùÕ”£‡a7ˇlˇoÜ−
    zÂÏBÁËmC˘ß×z{#lfl⁄õmł?íTM¥u¸š\L†áFı!-½šÀ‚ž¦AÅŽdZqê‰)Iü"˘š™Ñظ¸<Šıv¢U',)åX#−ßÅ\YƒÿŒ¶¥}ÏÄÚ£ØÍ ökC›fìLJ¶u÷¹öØêX9XWtùã,š"ÓxòÇô„¼N!ó:[ªˆ³ï•Łõ±^çx#δsLe¤bY‡#Y׸©åFÌîlËCdàåºT-)K¸È>H9”Ñå|nå $fi°ûÄ$å4k’#˚r›Äîæ²è§fi:ZJEëä´ ý‘byŠ+w
    þz“Ç
    Éúñõ˘iMS¦C˘¸«.¶ÄµÚž431üPÐ¥{yŽó¯*O
    +ºiÝ7'òM€Fzä^GçÖºJ²™#E⁄Øwý˘P0-\»ˆêvhǪœ>Ð˘m˝íÜëŸG½#«?ÊÕeqIñ¬c`e
    [ŁHD˘W‘»˝žŸûøJÍŽ+UVÿGJ²îs~ƒ´õc”{úoL‹
    3„XŁ?`•ïâ—ıaDJ?¥cå2)Ï8^žVA"?MÀ0z±¼ä[°CwP%µ™8;kŠ/IÍ:2/_kNË˚Žþ"Ö²äÕºÒg£WjÆd$ÄMÑõe•;?ò[hÏ+PD˚ à×Óô¦¨àÚÄN†YPcЫ)#×ÈÔÙL˜7]ë%PÞÏ:p2ªıÚô;fl·¤˘íBŒP¬q_öx¤‡d™flйzCŽ7ÿbò×iqó ´!ø¡Šzh¯1Úr„£ı˛A1>=/õ#w㮈
    üqß]‚˘a¤óßäUÌå*[:/@†yóBÀ˙ŸÒtx1®PŒ!Ïóc?›‰‚ÉÀkt[§m§a7z¾ˇö¤¥ë/è€1˛,JlQ…¼S;h(§f~@RÐ,ûÈ(−ön.Hq« ÍØ−¶ÞÁNØÔ_T”êDœwü˚Û.²\>—NŽr(Q¡OÌ¿¬?-kÓDO!ps˚¹Š?¥«T¦¾ø:õ+¬!˚G−×&¡pãÅ°-|Ê??ŁÂèÇžÉÄ¢m¥\a˛ME5c Q_&Ÿ.#/ÊKq:’HZb%\Òµ3ÀÌv˜stÆé@ͤCžzjú4Þ¢f ðH'g6¯¨ßËžÿ®tŸ}4:h\$‚lå3E_.¨%Ùx3FxGJF†ı˘~GþłûZ@P¦é9ÓÉi€çÊ ›µÖÔZúO~Ì×Ж;vÔáwQÖ1Ãì⁄†ÿ>i˚“ò0þ(ÖıƒN)xæA§©¾

    The document: https://files.acrobat.com/a/preview/71fb561e-78a2-44ae-8bd6-9df6520e9d1b
    The box I was talking about is the very last one.
    The Adobe ReaderI started using recently is version XI; the one I used when I started editing the document was Windows 8 Reader app by Microsoft, version 6.2.8516.0.

  • Strange Characters in Mail and Safari

    Hello,
    Just got my mini home and have noticed strange characters appearing in both Mail and Safari.
    It seems to be a font problem, but changing the fonts in mail and safarui prefs doesn't seem to fix it.
    Specifically: The apple start page rss stories display a weird font, so do the mail headers in mac mail.
    Yes, I did a search of the forum and the only things I seem to be coming up with are font issues related to outlook receiving mail on a pc.
    Any suggestions?
    Stefan

    Without seeing what you mean by "strange characters" it is hard to tell, but the most common cause of gibberish text is the font Helvetica Fractions or Times Phonetic. Dump them if you have them. Also clean your font caches with FontFinagler (use google to find it).
    Send a screen shot if you like (tom at bluesky dot org).

  • Mail displaying strange characters

    Hello
    I was previously using Thunderbird, but when I saw how nice Mail is, I switched over. Now I am starting to rethink, because it's displaying some very strange characters without reason. What could be the cause of this? Here is a screenshot (I blurred out people's names): <img src="http://img.photobucket.com/albums/v297/davidjohn/miscellaneous/Picture2.pn g" border="0"</a>
    MacBook Mac OS X (10.4.8)

    You're very welcome.
    That's a very common problem
    Glad you're all sorted now.

  • PROBLEM: HP p2015 printing strange Characters

    In our office we have an HP 2015 that has started printing abnormal characters on the end pages of say, a 6 page document. The first three pages will be ok, and then the remaining three pages will have symbols and strange characters in replace of the normal alphabet characters.
    I've noticed it doing this from ADOBE PDF documents that are larger than 3-4 pages. Does anyone have any ideas or solutions? I have re-installed the latest drivers, and the printer appears to have the latest updates.

    read here
    " If you find it helpful, pls click on the blue KUDOS button on the left -side of the screen as an indication "

  • I would like to be able to start typing a URL directly (with no need to clear the field first) after opening a new tab with my homepage...

    I've just installed the newest desktop version of the Firefox browser because my Opera doesn't feel very well these days. I'm trying to become friends with Firefox, and that's why I've changed the new tab settings in order to have my offline homepage loaded every time I open a new tab. There is an inconvenience — when I press Ctrl+T, the cursor appears at the end of the URL. It means that when I start typing, the letters show in the address bar after the URL of my homepage, so what I need is to clear the field first.
    Is there a way to get rid of this? (If it helpes, I'm currently using Windows 7.)
    I would appreciate if I could just press Ctrl+T, type a URL, and press Enter when I want to go to a website different from my homepage. Thank you for your replies!

    Then you can use (Ctrl+L and) Ctrl+A to select all the text in the location bar or Shift+Home/End.

  • How do I stop Safari from automatically loading a URL when I start typing the first few letters in the URL/search bar?

    My question concerns a bug (or feature, I'm not sure which) that I've been seeing for some time on my Safari installations.
    I'm running Lion (the latest patched version) with Safari (ditto). I've noticed that every so often, if I open a new tab and start typing something in the search/URL bar, Safari will not only suggest something based on my history, but will actually begin loading the page as though I had accepted that suggestion.
    For example, today, I typed the letter "b" in the search/URL bar, paused for a few seconds while I was thinking of what to type next, and Safari went ahead and loaded "bugzilla.gnome.org" based on that being the last URL starting with "b" that I happened to have gone to. And the same thing has happened to me on earlier occasions with different web sites. In other words, it's not merely giving me a suggestion, it then proceeds as though I had accepted that suggestion. Sometimes it might happen to be right, but it's the principle of the thing.
    Needless to say, I hadn't inadvertently bumped the Enter key.
    Of course, ordinarily, Safari will just offer a list of suggestions based on my bookmarks and browsing history, maybe filling out the URL bar with the topmost suggestion (while giving me the option of overtyping it if I wish). And, of course, this happens without fail if I've just had Safari preempt me by loading a page and am trying to find out why. Like the best Heisenbugs, this "feature" goes away as soon as I make a concerted attempt to study it.
    I have completely disabled AutoFill in the Preferences dialog. I would clear the cache and history, except that I kind of resent having to do that every time (or turn on private browsing, possibly another option) just to stop the computer from executing an instruction that I haven't even finished giving it yet (and in many cases intend to change).
    Has anyone else seen or been able to disable this feature?

Maybe you are looking for

  • Ipod touch 2g wont charge or connect to itunes

    Hi, no matter what I do the Itouch wont charge, I have plugged it by usb into a pc and itunes doesnt recognize it or charge it, I have tried everything in the troubleshoting exept full content restore which i dont want to do. Any ideas?

  • External HD in a network

    How can I do to connect a mac to an external HD attached to another mac in my network?

  • Can I force Mac O/S to use Adobe Reader for a downloaded file?

    We are having problems with students who use Macs downloading PDF forms from our website and then saving them from Preview instead of Reader.  There is a known bug in Preview on the Mac O/S, in that it corrupts PDF forms when it saves them.  So when

  • Acrobat PDF Maker -- Mail Merge (WORD 10)

    I am mail merging from a three tab excel.  While using the second tab to drive the merge I selected "Automatically send...by email" however, the "To:" field does not tie to the excel tab I am working from.  (just sent a bunch of emails to the wrong f

  • Migrating inspection from Vision Builder to Labview

    When I migrate my inspection, which includes an Acquire Image function, from Vision Builder for AI 2.0 to Labview 7.0, it asks me to find a bunch of *.vi and *.ctl files such as "IMAQ Resource Manager.vi", "IMAQ Configure Buffer.vi", "IVB Image Provi