WpfHexEditorControl icon indicating copy to clipboard operation
WpfHexEditorControl copied to clipboard

[Suggestion/Request] Add more encoding support

Open cl-oalami opened this issue 1 year ago • 8 comments

Hello, is there a way to select anything other than ASCII and custom table, maybe UTF8, UTF16, etc...

How would one go about implementing such a feature, i have looked at the source code and it's just looping at the TypeOfCharacterTable and TypeOfCharacterTableProperty

Cannot find the method that uses the ASCII option and modify it to just get the encoding page I send to it.

Thank you in advance, btw I understand French if you'd like to answer me in French.

----------------------------------------------------FRENCH-----------------------------------------------

Bonjour, y a-t-il un moyen de sélectionner autre chose que ASCII et une table personnalisée, peut-être UTF8, UTF16, etc...

Comment pourrait-on implémenter une telle fonctionnalité ? J'ai regardé le code source et il boucle simplement sur TypeOfCharacterTable et TypeOfCharacterTableProperty.

Je ne trouve pas la méthode qui utilise l'option ASCII et la modifier pour simplement obtenir la page d'encodage que je lui envoie.

Merci d'avance, au fait, je comprends le français si vous préférez me répondre en français.

cl-oalami avatar Apr 30 '24 14:04 cl-oalami

Oui c'est possible de le faire. Avez vous essayé les samples du projet ?

Sinon je regarde ce soir pour vous aider

abbaye avatar Apr 30 '24 14:04 abbaye

Merci pour la réponse rapide Derek, J'ai vu avec les projects Sample, mais TypeOfCharacterTable ne prend que deux options: image

cl-oalami avatar Apr 30 '24 14:04 cl-oalami

En fait tu peux prendre un fichier texte unicode (.tbl) et crée ta propre conversion. C'est ultra simple a faire et a utiliser

abbaye avatar Apr 30 '24 14:04 abbaye

Ne serait-ce pas mieux d'avoir une option qui pourrait justement prendre le codename de l'encoding, comme le fait Encoding.GetEncoding() C'est plus pratique que de distribuer un tool avec plusieurs fichiers tbl

EDIT: Ici, il suffit tout simplement de convertir cette partie en getEncoding au lieu d'appeler ASCII Directement image

cl-oalami avatar Apr 30 '24 14:04 cl-oalami

Oui si tu veux l'implanter et soumettre un pull request :)

Malheureusement actuellement je manque de temps pour faire du développement dans ce projet

abbaye avatar Apr 30 '24 15:04 abbaye

Aucun soucis mon ami, je le ferait au plus tôt possible, merci infiniment pour ton aide, super apprécié :D

cl-oalami avatar Apr 30 '24 15:04 cl-oalami

Je ne vois plus ton message pour l'ajout du contrôle dans winform. C'est réglé?

abbaye avatar May 02 '24 16:05 abbaye

Yep, tout edt bon c'était un bug VS 2022

cl-oalami avatar May 02 '24 16:05 cl-oalami