InputStreamReader problem...should be an easy fix
try
FileReader reader = new FileReader(fileName);
InputStreamReader inputreader = new InputStreamReader(reader, Charset.forName("ISO-8859-1"));
BufferedReader buffer = new BufferedReader(inputreader);
My compiler says:
C:\java\NFOview>javac NFOview.java
NFOview.java:89: cannot resolve symbol
symbol : constructor InputStreamReader(java.io.InputStreamReader,java.nio.charset.Charset)
location: class java.io.InputStreamReader
InputStreamReader inputreader = new InputStreamReader(inputreader, Charset.forName("ISO-8859-1"));
^
1 error
Hi Chris,
it sounds to me like you are trying to somehow get the upper-ascii characters in DOS to render (upper-ascii is what I call them). Stuff like the characters for creating borders, the different symbols common to fonts like Terminal, MS Linedraw, GWTE_437.. aka the Cp437 charset.
I'll trade answers with you... did you get the Terminal font itself to render in java (w/o the special chars).
I wrote a custom sort of drawString that used character glyphs and a custom mapping to be able to get the special symbols from MS Linedraw so my IRC Client would be able to render the special characters correctly.
I got the code at home... but answer my question and if your interested in my code to draw the upper-ascii characters let me know I'll post it in a day or so.
Similar Messages
-
I've just signed up to iTunes Match as I have songs on my iPhone 4 which wont sync with iTunes as they are from CDs but I can't see my music in the cloud now. Anyone had the same problem and have an easy fix?
What fixed it for me:
On your computer, open iTunes > My iPhone (or whatever name you gave your iPhone) > "Music" page
Uncheck "Sync Music"
Click "Sync" button (bottom right)
Let it run and finish
Uncheck the box for every song, playlist, etc.
Click "Sync" button (bottom right) (This step may be unnecessary, but I did it and got the result I wanted.)
Let it run and finish
Check the boxes for the music you want on your iPhone
Click "Sync" button (bottom right)
Let it run and finish
See if that doesn't work for you. I tried a lot of things that did nothing, but this seems to have fixed it, and quickly. -
Odd import problem - Hoping for an easy fix?
I imported a ppt presentation into kn, and, oddly enough, the presentation will not play. The play button is grayed out, and the slides do not show in the sidebar.
http://www.pbase.com/image/89059667/original.jpg
I've had no luck searching on this issue. Ny ideas as to what I'm doing wrong?
Thanks,
tjhI probably should have been a little clearer... I opened the powerpoint presentation in KN, and that's how the problem started. (After looking around, I can't find an "import" command, so I really couldn't have "imported.") Yes, I tried opening, not importing.
Here's the weird thing; the slides in the side panel are flat, like lines. If I click on them, the slide shows in the main viewer window.
This is on my MacBook, using Leopard 10.5.1. -
when i pluged in my ipod,computer start scanning,without finishing scan,it says"your computer is no more authorized for app that are installed in"yadav ipod",would you like to authorizes this computer for item purchased from itune" what should i do to fix this problem,,,
What the message says. In iTunes g the the Store tab in ther upper part of the screen and then clink on Authorize this computer.
-
I can not get my Adobe Photoshop Elements 8 organize to open. The edit option comes up with no problem, but will crash when I try to access organize. What should I do to fix this problem?
Hi,
Which operating system are you running on?
Try starting the organizer while holding down the shift key. Hopefully, it should load the Catalog Manager.
Select your current catalog and click on the Repair button. Once it has finished, click on the Open button to see if the catalog opens.
Good luck,
Brian -
I can not do the update , what should I do to fix this error ?
"There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanksHi,
Please refer to the help document below:
Error downloading, installing, or updating Creative Cloud applications
Regards,
Sheena -
Second day after updating to iOS 6 on my iPhone 4, my contacts have duplicated. Probably not all but many, and my contacts already numbered in the thousands.
Please tell me there is an easy fix to this problem!! I already had to go through contact-by-contact when I bought this phone and added contacts from my Blackberry and MS Outlook on the phone. Many duplicated at that time and Apple said the only fix was to go through each one and decide to keep or delete. I really don't want to do that again!I had this problem while I had iOS 5.1.1 installed for many months. Fortunately I only have about 150 contacts and only about half of them duplicated. I found that my problem was the way thing were set up in Outlook. I removed all of the duplicates and corrected everything in Outlook contacts (ignoring the address book) and have not had the problem since, Hope this helps.
-
My photos are in Raw Format when I open in Bridge and they appear very clean but when I transfer them to Photoshop they are full of noise. What should I do to fix the problem? Thanks.
are you sure its not just the way you are viewing the photo? you don't even see noise on the preview in Bridge and when I say preview I mean when zooming into the preview window. My thought process being in PS you are zoomed in more
-
Just installed Firefox 4 but when I try to search for add-ons every result fails to find anything or the loading gui just keeps spinning. What should I try to fix this problem?
Glad you seem to have sorted things out.
The warning about the warranty is light hearted, I think at one stage it warned "here be dragons" but also intended to make us think as it warns that making changes may produce problems. -
I have a MacBook Retina, and it won't upgrade to the new software (OSX Maverics). It will begin to download, but then say it can't finish the download. What should i do to fix this problem?
Your problem is really with "Time Machine", backup software included with OS X since version 10.5, not with your Time Capsule router. For more information on Time Machine, check these Web pages:
Time Machine FAQs
Time Machine Troubleshooting -
There are some noises coming from my MacAir2012 13inch's fan. What should i do to fix the problem?
Why would you need to do anything at all? The machine is under warranty, if there's something broken, that's what the warranty is for.
-
Is there any easy fix to the problem I encountered yesterday (and which continues)? Since yesterday I have had no internet access on my MacBook Air. The icon at the top of the screen shows just the shield outline, and underneath in faded letters says "Wi-Fi: No hardware installed". I received an error message that said s
something with a minus 50 referenced.Reset SMC. http://support.apple.com/kb/HT3964
Choose the appropriate method.
"Resetting SMC on portables with a battery you should not remove on your own". -
What to do with compatability issues? Easy fix? or good enough?
So with this forum's help I've managed to create a new website for our company... I worked locally from my laptop - win7, google chrome - and it looked great, but from our work computers - winXP, IE 6 - there's a few issues:
- The title in the banner shifts up/down from page to page
- Banner itself expands on some pages
- spry accordion is aligned on the left, but should be centered
Is there an easy fix to any of these? Probably not..
Also, what's the best way to test the site on all browser's? I know dreamweaver has the check, but I'd like to see what it looks like.. Should I download each browser and test them?
Thanks in advance for any help!Browser specific issues in IE are usually fixable with a few conditional comments. You would have to upload your site to a test folder on your server and post a URL here to get help. There is no way to know what you've got going on without seeing your page(s)/code.
Use the online code validation tools below and fix any reported errors. 90% of browser problems can be cured with valid code.
HTML Validator - http://validator.w3.org
CSS Validator - http://jigsaw.w3.org/css-validator/
TESTING -
http://browsershots.org will give you screenshots of your pages on various browsers and platforms.
IE DebugBar browser is convenient for locally testing in IE5 - 8.
It's probably a good idea to have the latest installations of Firefox, Safari or Chrome, IE and Opera on hand to cover all your bases.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
I was going to use iExplorer to try to copy Notes from iphone 4 to my iMac but changed my mind after downloading iExplorer to my iMac. Deleted iExplorer from my iMac. Now my Mac won't recognize when my iPhone is plugged in. Is iExplorer the problem? How do I fix this?
I am using the Yosemite OS on mHi TakesTwo2Tango,
Thanks for using Apple Support Communities. It sounds like you should definitely be seeing a plus sign after tapping Edit, so I would try a couple relatively easy things (closing the Music app, resetting the iPhone):
iOS: Force an app to close
http://support.apple.com/kb/ht5137
iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
http://support.apple.com/kb/HT1430
Cheers,
- Ari -
My Adobe has stopped allowing me to move library books from my PC to my KOBO (both show authorized on the ADE. the message reads : CE_COPY_NOT_ALLOWED - No permission to copy book. It used to work. Any easy fixed for me?(I already tried uninstall and re-install)
Welcome to the Club! Got the same Problem and had a really hard time reaching the Customer Support because they were down due to maitenance! Just wrote to their experts chat and hope to get an answer in this life!
I tried to authorize my Computer and eBookreader with a new Adobe-ID, but it says I've done used this ID too often, even though it was brandnew! Can't copy my just-purchased eBook because "Copying is not allowed".
I hold my thumbs for you that Adobe solves this Problem fast enough. Other ways I'll sell my eBookreader and buy the Kindle-Reader from Amazon and say GOOD BYE to Adobe!
Maybe you are looking for
-
Efficiency of decoding and displaying image files?
BRIEF SUMMARY My question is this: can Flash Player download JPG and GIF files from a server and rapidly open/decode them, ready for display, efficiently and entirely 'in memory'? Would Flex be a good choice of language for developing a RIA that need
-
Displaying Asian characters on Solaris platform?
I have a java application that can display Chinese, Japanese, Korean & Taiwanese (CJKT) on a Windows platform. It is able to display these characters on Windows because i have installed the CJKT locales and have modified the font.properties file to p
-
ADF Controls not working throught Portlet Bridge
Hello, I have a JSF/ADF Faces very simple application, when I expose this application using Portlet Faces Bridge, JSF controls are working but ADF controls are not working. I am using: JDeveloper 10.1.3.3 OC4J 10.1.3.3 Standalone with PDK 10.1.3.2 Po
-
HP Photosmart Pro B9180 - print problem - color
The photo output is not the correct color. I tried cleaning and calibartaing but tere does not seem to be magenta printing. the reoprt says the printhead is oK, but it is not printing correctly ? Any ideas ?
-
Linux Based FMB on Windows or vise versa
Hi all, If i design any fmb(using Oracle fusion middleware R1 forms) on Linux based machine/virtual machine, Can i open it with windows 7(using Oracle fusion middleware R1 forms). or do i need to perform any conversion for that?