New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions Bookmark and Share
SubEBS

Using the Java Component, certain Code 39 characters, such as the underscore, do not scan.

We are using LinearBarcode.jar in oracle and I noticed that when barcode is generated for value example A_B, it reads as AB when scanned and the underscore '_' is ignored. Please help

Operating System: LINUX

Application: Oracle EBS

05-21-13     2252 day(s) ago    

  Report Abuse

 

Ben

Best Answer

The standard Code 39 character set does not include the underscore. It is part of Extended Code 39. To encode the underscore, set your symbology to Extended Code 39. Using the Symbology chart for Java, there are two options:

image

(1) Set the type:
barcode.barType = barcode.CODE39EXT;

In your example:
barcode.barType (BarcodeObject,barcode.CODE39EXT)

(2) Set the symbology id:
barcode.setSymbologyID = (1);

In your example:
barcode.setSymbologyID (BarcodeObject,1)


Set the scanner to read Extended Code 39/Full ASCII.

Posted 2252 day(s) ago

()
()
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (7)

SubEBS
After setting scanner to full ASCII, the scanner identified underscore. Thanks for your solution

Posted 2250 day(s) ago

()
()
   Report Abuse

Ben
In your case, you would use barcode.setSymbologyID (BarcodeObject,1);

Then you will want to make sure your scanner is set to full ASCII or else it will display the _ as %O.

Posted 2251 day(s) ago

()
()
   Report Abuse

SubEBS
Do you mean set it as barcode.setSymbologyID (BarcodeObject,1);

Because if I set as barcode.setSymbologyID = (1); , it throws some error when I compile

After I have done the above change to barcode.setSymbologyID (BarcodeObject,1); I can see the %O coming into picture when scanned.

For example if value is A_B, it is read as A%OB

Posted 2251 day(s) ago

()
()
   Report Abuse

Ben
Set the Symbology to 1 (which is the Code 39 Extended)

barcode.setSymbologyID = (1);

Posted 2251 day(s) ago

()
()
   Report Abuse

SubEBS
Hi - I am not sure how exactly to set the below in my code .I have attached the piece of my code for generating the barcode. Could you please let me know or if you can palce it in exact place?

(1) Set the type:
barcode.barType = barcode.CODE39EXT;

(2) Set the symbology id:
barcode.setSymbologyID = (1);


Below is my code. Can you please help in placeing the above . i ma not a java expert

==========
BEGIN
imageFile := srw.create_temporary_filename();
-- -------------------------------------------------------------------------
-- Create the barcode object
-- -------------------------------------------------------------------------
BarcodeObject := Barcode.new();
-- -------------------------------------------------------------------------
-- Set the symbology
-- -------------------------------------------------------------------------
Barcode.setSymbologyID(BarcodeObject, Barcode.CODE39EXT);

barcode.setShowText(BarcodeObject,FALSE);
barcode.setCheckCharacterInText(BarcodeObject,FALSE);
barcode.setCheckCharacter(BarcodeObject,FALSE);
barcode.setTopMarginCM(BarcodeObject,0);
--barcode.setXDimensionCM(BarcodeObject,.10);
--barcode.setBarHeightCM(BarcodeObject,.10);
-- -------------------------------------------------------------------------
-- set the data to encode
-- -------------------------------------------------------------------------
Barcode.setDataToEncode(BarcodeObject, to_char(:resource_code));
-- -------------------------------------------------------------------------
-- Create the jpeg
-- -------------------------------------------------------------------------
BarcodeEncoderObject := BarcodeEncoder.new(BarcodeObject, 'JPEG',ImageFile);

-- -------------------------------------------------------------------------
-- If, for some reason, the barcode is not created, return null
-- otherwise, return the name of the barcode image jpeg that was created
-- -------------------------------------------------------------------------

IF ORA_JAVA.IS_NULL(BarcodeEncoderObject) then
return(NULL);
ELSE
return(ImageFile);
END IF;
END;



Posted 2251 day(s) ago

()
()
   Report Abuse

SubEBS
we are using CODE39

Posted 2252 day(s) ago

()
()
   Report Abuse

Ben
What barcode symbology/type are you attempting to generate?



Posted 2252 day(s) ago

()
()
   Report Abuse
Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2019 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook