-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Hello,
may I ask You to consider following RFE? RFE: Add Decode (selected string) from Base64, Base 32, Hex to String using selected Charset
The reason is for this RFE is to have a possibility to fast and inside SQuirreL SQL decode selected string (part of one ResultSet cell) from Base 64 or Base32 or Hex representation of string. Decoding has to support Charset encoding (like UTF8, windows-1250...), which is supported by Java API. Only user selected part of ResultSet cell would be decoded. See attached screenshot with suggested functionality. Decoded string would be printed into message window, where SQuirreL SQL already prints different messages, not to replace encoded string inside ResultSet cell window.
Regarding selecting charset encoding, I would suggest to add of all encodings by Java API into prefs.xml and XML skilled user will be responsible for removing unnecessary encodings and sorting the rest of them, so most frequently used encodings would be listed on top (so SQuirreL SQL will list encodings according to the sorting encodings inside prefs.xml). No GUI for editing in prefs.xml is necessary from my point of view. Selecting of Charset encoding will appear in SelectBox, because there will be hundreds of Charset encodings.
So, the user will select text by mouse, right mouse click, select Decode... from context menu, then select one of Base64 or Base 32 or Hex, then select Charset encoding from SelectBox to be used when converting the string, then Decode. Decoded string will be printed into message window.
Thank You in advance, Stepan
Test Case:
select 'Source string: Hello, how are You?
Source string Base64 encoded as UTF-8: SGVsbG8sIGhvdyBhcmUgWW91Pw==
Source string Base32 encoded as UTF-8: JBSWY3DPFQQGQ33XEBQXEZJALFXXKPY=
Source string Hex encoded as UTF-8: 48656c6c6f2c20686f772061726520596f753f' as "COLUMN_A"
