Unix Technical Forum

Hex codes instead of chars problem

This is a discussion on Hex codes instead of chars problem within the MySQL forums, part of the Database Server Software category; --> Hi I need to write a little Windows utility in C++ to retrieve data from a mysql database that ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 07:35 AM
Graham Dicker
 
Posts: n/a
Default Hex codes instead of chars problem

Hi

I need to write a little Windows utility in C++ to retrieve data from a
mysql database that belongs to a Linux backup program called Bacula. The
data I am getting via the ODBC driver consists of hex values where I would
have expected a character string e.g. instead of Abcd I get 41626364.
Performing a query on the Linux machine returns the ASCII strings as
expected. The problem is something to do with Unicode/ASCII I expect but I
can't find out how to deal with it. Any suggestions greatly appreciated.

TIA

Graham Dicker


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:55 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com