Forums » General Discussion

Thread: Results grid displays hex for utf8 mediumtext field

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 4 - Pages: 1 - Last Post: Mar 17, 2011 5:29 PM by: Mauritz Threads: [ Previous | Next ]
Snapper1012

Posts: 2
Registered: 6/30/10
Results grid displays hex for utf8 mediumtext field
Posted: Jun 30, 2010 5:22 PM
 
  Click to reply to this thread Reply

I have a MySQL 5.0 database with unicode text in varchar and text fields with a utf8 character set. If I do a select in Toad (4.6 and 4.1) the results don't display as I would expect, ie, data from both fields shown as human-readable text, rather, the text fields are displayed as hex.

Example:
Table X in my DB includes the following fields:
`A` text character set utf8 collate utf8_bin,
`B` varchar(255) character set utf8 collate utf8_bin default NULL,

If I do a select like:
SELECT A, B
FROM X;

A is shown as hex like '0x596F756E672070...' while B is shown as readable text.

If I alter the select as follows:
SELECT A COLLATE utf8_unicode_ci, B
FROM X;

the A field displays readable text. The same thing happens if I use the utf8_bin collation in the select.

Is displaying hex the intended/expected behaviour? And why does it display it as text if I apply a collation?
Message was edited by: Snapper1012


Wells

Posts: 1
Registered: 1/19/11
Re: Results grid displays hex for utf8 mediumtext field
Posted: Jan 19, 2011 8:23 AM   in response to: Snapper1012
 
  Click to reply to this thread Reply

I am seeing the exact same thing. I was thinking that there must be an option to change the default view that grid displays for these text fields, but I am having trouble finding it.

I found another thread dealing with this issue, but the members did not know the reason behind this default behavior nor did they know how to fix it. The best the other members could offer was to go back to "Toad for Mysql 4" as the default behavior was to display these fields in UTF8 (as opposed to hex).

I've been searching high and low for a copy of Toad for Mysql 4.



Guest
Re: Results grid displays hex for utf8 mediumtext field
Posted: Jan 20, 2011 10:33 AM   in response to: Wells
  Click to reply to this thread Reply

This issue should be resolved for the soon to be released (Hopefully later today) Toad for MySQL 6.0 beta.


Snapper1012

Posts: 2
Registered: 6/30/10
Re: Results grid displays hex for utf8 mediumtext field
Posted: Mar 17, 2011 5:23 PM   in response to: Guest
 
  Click to reply to this thread Reply

Thanks, I'll check that out.



Mauritz

Posts: 314
Registered: 8/23/07
Re: Results grid displays hex for utf8 mediumtext field
Posted: Mar 17, 2011 5:29 PM   in response to: Snapper1012
 
  Click to reply to this thread Reply

This issue should also have been fixed in the new Toad for MySQL 6.0 beta.

/Henrik


Legend
Guru: 2001 + pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums