-
Notifications
You must be signed in to change notification settings - Fork 115
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
put_attachment crashes with filename containing vowels #150
Comments
What's the filename? Can you |
Here are two examples for you directly from the erlang console: 1> It = "helloß.jpg". |
This string looks fine to me.
Is this really the input that is passed to
It looks like a non-utf8 encoded binary was passed to |
Yes, I passed to couchbeam_util:encode_att_name/1... Because in this way it works.... I just look into unicode:characters_to_binary. Thank you very much for your assistance and tips :-) |
Hello,
when I am trying to upload a file with a vowel ü,ä,ö,ß etc. in a filenam the erlang module crashes.
See:
exit {ucs,{bad_utf8_character_code}}
STACK [{xmerl_ucs,from_utf8,1,[{file,"xmerl_ucs.erl"},{line,186}]},{couchbeam_util,encode_att_name,1,[{file,"couchbeam_util.erl"},{line,26}]},{couchbeam,put_attachment,5,[{file,"couchbeam.erl"},{line,878}]}
The text was updated successfully, but these errors were encountered: