Problem with ASCII char (127-'\u0080') while printing
Hello,
I am working with socket and want to send some data over the network. I am using Strings for sending data over the socket. In few characters ('\u007F' to '\u009F') I am getting error. Whenever I try to execute this line, I got an error
System.out.println ( '\u0080') -> It is printed as '?' = '\u003F'.
I try to send this character (String) over the network through Client Socket\
Socket ClientSocket = new Socket("192.168.243.10", "6010");out = new PrintWriter(ClientSocket.getOutputStream(), true);
out.println('\u0080') ;
out.close() ;
ClientSocket.close();It is received with same '\u003F' ='?' at the receiving end (192.168.243.10). While rest all characterset is receiving & printing accurately. Any Comments on it?
Shozi
You are using a Writer to send those chars, which
means it will attempt to encode them into bytes. But
since those bytes you mentioned are not defined in
ASCII (or in UTF-8859-1 for that matter) then the
charset converter encodes them as "?".
Can you explain why you are using Strings when it
appears you need to send untranslated bytes?I am following a pattern of bits to identify data elements present in message string.
I am writing a chat Client & Server. While sending message to chat clients, I need to tell whether private window request, or main channel request or notification (will display in both private window & main window). In this way, I have 32 combination of options that can be present in my message, so I am using 4 chars (32 bits) to figure out which option is present or which message element is present in the received message. So, I am using bitmap pattern to identify data elements in my message. For this I am using bits of a char (lower 8 bits). This will help me in identifying the characters present in the message. I have specific range of characters that aren't interpreted correctly. '\u007F' to '\u009F' while rest are working absolutely fine with me. Why these characters aren't working? This is what I am trying to figure out.
Hope I clarifies the situation.
Similar Messages
-
Our appplication uses the java applet to print the application data to default printer. We recommended our consumer to install latest jre (1.7.0_07) to run applet from our site.
Since then we are facing issues in MAC OS X 10.7.3 and above. The applet crashes and throws following error in MAC console. There was no error in application or java console.
We uninstalled java 1.7.0.0_07 and restore the apple recommended java 1.6.0_35. After that the applet works fine(java 1.6.0_35) to print the applciation data in MAC OS X 10.7.4.
The browser pops up with error message says "Error While Printing"
Application Specific Information:
objc[2508]: garbage collection is OFF
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Printing failed because PMSessionEndDocumentNoDialog() returned -30871.'
*** First throw call stack:
0 CoreFoundation 0x00007fff8a835f56 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff90651d5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff8a835d8a +[NSException raise:format:arguments:] + 106
3 CoreFoundation 0x00007fff8a835d14 +[NSException raise:format:] + 116
4 AppKit 0x00007fff9577547f -[NSPrintSpoolingGraphicsContext endDocument] + 177
5 AppKit 0x00007fff95775795 -[NSPrintSpoolingGraphicsContext dealloc] + 42
6 libobjc.A.dylib 0x00007fff9064a03c ZN12GLOBAL__N_119AutoreleasePoolPage3popEPv + 434
7 CoreFoundation 0x00007fff8a7c3915 _CFAutoreleasePoolPop + 37
8 liblwawt.dylib 0x000000010c74b8db Java_sun_lwawt_macosx_CPrinterJob_printLoop + 165
9 ??? 0x000000010312af90 0x0 + 4346523536
10 ??? 0x000000010311f450 0x0 + 4346475600
11 ??? 0x000000010311f158 0x0 + 4346474840
12 ??? 0x000000010311f158 0x0 + 4346474840
Are there any issues with MAC 10.7.3 and above with applet running in jre 1.7.0_07 to print the data to printer?Step one is to ensure that you have a bootable backup/clone or a verified Time Machine backup of 10.7.3.
Step two is to manually download and install the 10.7.3 COMBO update.
Step three, if these are successful, is to manually download and install the 10.7.4 COMBO update, repair permissions, and restart.
These should fix the problem with the installer. As for the games, i've not a clue since I don't run any on my computers. -
I have a problem with downloading from app store while last three days. An error does not allow me to take any app. The error number is 1009.
Thats the ugliest code I've seen in a while and may be hampering your abilities to debug it. No offense - you have to start somewhere - think of it as somewhat constructive criticism.
However, I cannot find any place where this is happening. Its happening on line 193.
Also, this only happens when you try to move certain pieces to certain squaresThat might be a clue. Try printing out the indexes before line 193 and see what happens. Maybe use a debugger to step through your code. -
Communication problem with Adobe 9.0 and HP Printer when I scan
I'm having a problem getting a .pdf file to come up when I scan from a HP 5610 All-in-one printer. Have uninstalled and reinstalled HP software three times but when I scan and want a pdf file it won't communicate with Adobe 9.0 reader for some reason. Is there a setting in Adobe reader that's a problem?
Thanks.Thanks...found out that an HP5610xi All-in-One will not completely communicate with Adobe 9.0 Had to go to Adobe 6.0
Date: Thu, 17 Dec 2009 03:19:49 -0700
From: [email protected]
To: [email protected]
Subject: Communication problem with Adobe 9.0 and HP Printer when I scan
May be that the HP software doesn't support Adobe Reader 9.
> -
Web Analysis report is not coming with the border/logo/heading while print
Hi All,
I am using 9.3.1 version of hyperion planning were Web Analysis report is not coming with the border/logo/heading while printing with the option "print all object", Only the data grid is coming in the print. If I use "print screen" it is coming with border/logo/heading but it gives a screenshot of the report, that won't cater out need.
So please suggest us with a resolution to have border, logo and heading, while using Print all object.
Thanks with regards....
RaoHi Sagar,
In scripts when you will see print preview the logo will be not shown up with clarity.Take the print out of the document and check whether logo is printing up with clarity.
Thanks
Phani -
I am having problems with my outlook 2011. While i am able to check and SEND email on all my other devices ( Ipad, iphone, Macbook), I am unablesend any email with my iMac ( i can recieve email) . This problem started suddenly and the error message i get is error 5.7.8. I have read the threads on line and went into settings, even created a new profile, nothing helps...Please advice..is this something to do with my keychain Access?
As Outlook is not an Apple product, you will find more helpers familiar with Outlook here:
Office for Mac forums -
Hp3050 says problem with the tricolour cartridge but wont print on black either
my hp 3050 j610 printer says problem with the tri colour cartridge justried printing in black but just sends out a blank sheet
Hi @kennym29,
Welcome to the HP Forums!
I understand that your HP 3050 will not print in black and says you have a problem with your tricolor cartridge. I am sorry to hear this, but happy to help!
I would recommend the following guides:
'Incompatible Print Cartridge' or 'Print Cartridge Problem' Message Displays on the Computer or Prin....
Fixing Print Quality Problems for the HP Deskjet 3050 (J610) All-in-One Printer Series.
Hope these guides are helpful, and have a great day!
RnRMusicMan
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" to say “Thanks” for helping! -
Problem with special chars in BLOB datatype using contains keyword
Facing problem, when part searching with special chars in BLOB datatype. It is considering the non alpha-numeric chars as a separtor in a provided string
EX:
SELECT *
FROM RESUME_TEST P,grst_candidate d
WHERE d.candidate_id = p.candidate_id
AND CONTAINS(P.CAND_RESUME,'%VB.NET%',1) > 0
Strings: , VB.NET , PL/SQL AS/400 , C etc..
Followed the below approaches
1) created a table:
Syntax: create table resume_Test(cand_id number(10),cand_resume blob);
2) inserted the values into this table upto 60,000
3) created a context index
3.1 created preferences
Syntax:
BEGIN
ctx_ddl.create_preference('try_lexer3','BASIC_LEXER');
ctx_ddl.set_attribute('try_lexer3','printjoins','-_~!@#$%^&*(){}[],=?\;|><.+');
END;
3.2 created context index
Syntax:
CREATE INDEX CANDRESUME_CTX_IDX ON resume_test (cand_resume)
INDEXTYPE IS CTXSYS.CONTEXT
PARAMETERS ('LEXER try_lexer3 memory 500M');
4) while executing this index, it is taking much time approx 6 hrs(plz explain why it is taking time)
5) Problems:
5.1 when searching with string(VB.NET , PL/SQL AS/400 , C etc..) it is considering the special char as a separator
5.2 used escape char (\) also, but no effect
5.3 when searching with single char, it is giving error (ORA-29902,ORA-20000,DRG-51030)
5.4 getting the above error with wild card chars (& ,_, (),{},[])
So, please explain the clear scenarios, why am getting this error , and how to get the proper results.Have you tried adding the / char to the printjoin characters?
Indexing can take a lot of time, depending on the amount of data and your machine's power. You could try to parallelize the index creation and / or assign more memory
CREATE INDEX CANDRESUME_CTX_IDX ON resume_test (cand_resume)
INDEXTYPE IS CTXSYS.CONTEXT
PARAMETERS ('LEXER try_lexer3 memory 2000M') PARALLEL 8; -
Problem with HP Deskjet Ink Advantage 3515 printer
Hello. First of all I would like to wish everyone a Happy New Year!
I recently bought a HP Deskjet Ink Advantage 3515 printer. The printer works fine (prints, scans and copies). There is only one problem with it. It returns me an error when I'm shutting it off. This happens very often but not always, it is kinda annoying. The error is displayed as: ERROR CODE 0X02B7C2ED SM_MODULE C (the error is also shown on the image). I tried to Google the problem but without effects. I don't know what could be the problem. Can someone help me please, because I have no idea what could be the issue. Thanks for any replays.
This question was solved.
View Solution.Hello musidi,
I would like to provide you with some troubleshooting steps to hopefully resolve this issue with your HP Deskjet Ink Advantage 3515 e-All-in-One Printer. I believe that error code OXC4EB981B is actually referring to a carriage jam.
Click on the link below and follow the steps listed:
http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c03368578&lc=en&product=5157487&tmp...
If the steps above don't resolve the issue, please call our technical support at 800-474-6836. If you live outside the US/Canada Region please click the link below to get the support number for your region. http://www.hp.com/cgi-bin/hpsupport/index.pl
Best regards,
I worked on behalf of HP. -
Problem with RoboHelp 7 and Batch Generate "Printed Documentation"
Hello people! I have a problem with Batch Generate of Word documenttion in RoboHelp 7, when launch the Batch Generate with "Printed Documention" option selected send me a error message like this "Adobe Acrobat or Adobe Elments version 7 or Higher is not installed on your system".
RoboHelp generate de .chm file without problems.
I have the last version of Adobe Acrobat Reader Installed in my computer, my RoboHelp's project is not very complicated, the only to remarks is in spanish lenguage and the computer is in spanish too, but anothers projects in english US generate documentation without problems, I dont know if this had anything to do..
I have windows XP SP 3,so I test in another computer to generate documentation and I have the same problem. What´s happend ??
Thank you for all.I too am having this issue with the TOC. Firefox simply
doesn't handle it correctly and I have no idea how to fix
it. -
I need to develop an application printing spanish characters like "�" (ce trencada) "�", "�", etc.
The problem is when I type
System.out.print("�")in my application, I get "plus-minus" symbol while executing it.
Anyone can help me, please?
Thank you in advance.check the list of fonts available. You can use the following code for the purpose.
public static void main(String args[])
String fonts[] = getFontNames();
for(int i = 0; i < fonts.length; i++)
System.out.println(fonts);
public static String[] getFontNames()
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
return ge.getAvailableFontFamilyNames(); -
Problem with saving InDesign newsletter to a print ready PDF in CS6
I am using a PC and created a 4 page newsletter in InDesign, CS6. I have made this newsletter over and over in previous version of CS products and never had a problem. But with CS6, I cannot get it to save as a print-ready PDF with the bleeds and markups the printer needs.
I have the Document Setup set to a bleed of 0.25 all around. I have tried Printing to PDF, Exporting, and Print Booklet. Printing to PDF doesn't show the bleeds and markups. Exporting doesn't show the bleeds and markups. Print Booklet only shows the bleeds and markups if I shrink the file down with a Scale to Fit...which won't work for the printer. I have tried everything thing I can think of, tried changing all kinds of printer settings...I seriously have no idea why this isn't working.
Any suggestions?Well, the obvious thing is to make sure you've got "Use Document Bleed Settings" checked in the export dialog AND that you've got trim marks turned on. YOu should save a custom preset to do this along with the other settings your printer requires.
-
Problem with contribute 3.11/flashpaper 2 printer driver
I have problem with the contribute 3.11 and flashpaper 2
printer driver. When I try to install it to my lab under domain
enviroment, that mean multi user will use the same computer with
differ user right. The problem is, when user with admin right log
into the domain and left click on any file the first time,
contribute install a new flahspaper driver, eg. macromedia
flashpaper, macromedia flashpaper (copy 1), macromedia flashpaper
(copy 2) etc...another problem is, when the user with domain user
right login the computer, when they left click on any file the
first time, contribute try to install the flashpaper printer driver
for them, but since they are not allow to install any printer
driver, the message," you do not have primission to install the
printer driver etc" pop up and it only pop up once.
Are there anyone have the same problem? Anyone know how to
fix it? Thank you for the help in advance.
DarksoloHi,
Please check with in your environmental variable whether JDK is 32 bit or shifted to 64 bit.
It seems even though you have 64 bit still it is taking 32 bit only.
Regards,
Kal -
Problem with currency fields in alv while editing
hi guys,
while creating the editable fields and saving the data in database i have problem with currency(price fields),
when iam entering 10000 it is storing as 100.00 in database but
i want to store it as 10,000.00
can any one help me ....
it is urgent
thanks..When populating the fieldcatalog for ur currency amount field then
populate these additional fields with currency key and table name where this key field belongs.
cfieldname type slis_fieldname, " field with currency unit
ctabname type slis_tabname, " and table
May be then it will solve ur prob.
Regards,
Joy. -
Problem with page size when using redirected printer
I have a customer who connects to another customer's network via VPN, then logs into and RDS server running Server 2012.
This customer then opens an Excel file and tries to print it out to a printer that is local to her and of course shows as redirected when looking at Devices and Printers in her login on the RDS server.
The problem is that when going to File / Print on the Excel document, the page size is listed as Custom Size and if you try to select any other size from the list, it won't accept it and stays at custom size. If she selects another redirected local printer,
she can choose whatever page size she wants.
This is not selecting the paper size. She can change that on either redirected printer. So when she is trying to print an Excel file on legal size paper, the print comes out reduced as if it is trying to print on letter size paper even though legal size
paper is selected.
I hope my description is clear enough. If not, please let me know and I'll try to explain further. So I'm trying to find how to fix this one redirected printer (a Brother MFC-7860DW) so that she can change the page size so when the document prints it occupies
the full sheet of legal size paper.
JonathanIs there is a difference in printer driver for working and non-working redirected printers? If yes, can you match it?
Do you see the same behavior if you use Generic Text Only inbox driver?
Thanks
Hari Kumar --- Disclaimer: This posting is provided AS-IS with no warranties or guarantees and confers no rights
Maybe you are looking for
-
I seem to have at least two, and maybe four, iCloud accounts, across my iPhone, my iPad and my MacBook Pro. Can I combine them into one iCloud account? I have been able to log into what appears to be three of the four iCloud accounts I have. Two of t
-
GL Master - Only Balances in Local Currency
I am curious when to check the 'Only Balances in Local Currency' (OBILC) box on a Open Item GL. I've read information from multiple sources and interpret that it should be set on all OI accounts with a few exceptions like recon accounts for vendors
-
In IE 11 version its not entering to the SharePoint site after successful login
Dears, I have problem with in IE 11. My SharePoint have Windows authentication and Forms authentication modes. When I opened my SharePoint site its keep asking me to choose Windows Authentication Mode or Forms Authentication Mode. Once I select Windo
-
How to buy an Ipad outside united states
I have a friend who lives in the United Arab Emirates and they want to know if they will be able to use their credit card to purchase an Ipad and if they can send it to someone in the United States. Message was edited by: kygirl05
-
Any BAPI for PAYR table updation
Hi All, Is there any BAPI available for payment medium file table (PAYR) update? Thanks, Anil.