• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Does varchar allow non-printable characters

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would like to pack a max of 25 characters (containing numeric values '0' - '9'] into a database varchar(25) field. In order to do this, I use BCD encoding. However, when I print the BCD encoded string, it results in some non-printable character. I have following questions?
1. Can I use, a varchar datatype in the database, to store non-printable characters
2. Is there anyway, I could represent characters ['0' - '9'] in BCD format without using non-printable characters?
The packed decimal value will be converted to a string and subsequently sent over SOAP/XML to the SOAP server.
Appreciate your help
thanks
Chandru Ganesan
The underlying database is DB2
Thanks for your help.
 
Chandru Ganesan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there anybody who could answer this question?
 
reply
    Bookmark Topic Watch Topic
  • New Topic