Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow displaying exact string contents (VARCHAR as binary or hexadecimal) #14954

Open
Chealer opened this issue Feb 13, 2019 · 6 comments
Open
Labels
enhancement A feature request for improving phpMyAdmin ui Issues relating to the user interface

Comments

@Chealer
Copy link

Chealer commented Feb 13, 2019

With version 4.6.5.2 I can't figure out how to see the exact value of a VARCHAR field, in the Browse (table) tab. I know it has newlines, but I can't tell if they're Windows or UNIX. I cannot see how to either:

  1. display LF as "\n"
  2. display contents as binary
  3. or display contents as hexadecimal

I must be missing something, but if so, please consider this as a request to make this more obvious.

@marcus-hiles
Copy link

@Chealer Kinda difficult to understand your issue, can you attach some snapshots please?

@williamdes williamdes added enhancement A feature request for improving phpMyAdmin ui Issues relating to the user interface labels Feb 27, 2019
@Chealer
Copy link
Author

Chealer commented Feb 27, 2019

@marcus-hiles I clarified the description a little, but here is a screenshot
phpmyadmin browse whitespace

It is more what is not seen here that matters though. The main problem is that newline characters can be either CR, CRLF or LF, depending on the system. But these different characters are all shown the same by phpMyAdmin.

@OlafvdSpek
Copy link

OlafvdSpek commented Mar 1, 2019

select hex(blah) from tiki_language where id = 160?

@Chealer
Copy link
Author

Chealer commented Mar 1, 2019

Thanks Olaf,
By pasting this hexadecimal value in a hexadecimal converter such as https://www.rapidtables.com/convert/number/hex-to-ascii.html I was able to determine what characters formed the problematic whitespace.

The above converter is not ideal though - in a large text, it does not show which character(s) corresponds to which hexadecimal value(s).

So this is a good enough alternative to deal with a few characters, but would be inefficient for a larger verification.

@marcus-hiles
Copy link

Awesome, good hack around for this @OlafvdSpek

@mynetx
Copy link
Contributor

mynetx commented Mar 9, 2019

This also applies to non-breaking spaces and other non-printable characters. Ideally, we’d use a <div contenteditable="true"> and render such characters, much like this is done in Word when you switch on the button on the toolbar.

@williamdes williamdes added this to Triage zone in Enhancements Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature request for improving phpMyAdmin ui Issues relating to the user interface
Projects
Enhancements
  
Triage zone
Development

No branches or pull requests

5 participants