-
Notifications
You must be signed in to change notification settings - Fork 59
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
all::encodings()
returns an errornous list (and should be sorted alphabetically).
#104
Comments
@getreu I'm confused as to what do you mean by names "not working". My best guess is that you are trying to get encodings by There is no guarantee that |
Maybe I am using your API not in the right way: a) My tools prints a list with all encodings supported:
b) Then the user choses one entry from the list and enters a string
These encodings are listed in a) but are not understood in b)
|
First, the primary WHATWG name (which I think you are doing this in the wrong way, however. You should have a separate mapping from the name (whatever it is) to the encoding object, like [1] That is, while I will keep a unique name for each encoding (so that you can, say, map |
Thanks a lot for your help! I modified my supported encodings list generation code as follows:
As you can see I sorted the list myself. I agree with you that this feature is not of interest for many people. |
The bug is in
src/all.rs
:This is the way I collect the list (please confirm that it should be done this way):
the following names do not work:
These two do work but are not listed:
PLEASE return them alphabetically sorted!
The text was updated successfully, but these errors were encountered: