Skip to content

Conversation

@Gelob
Copy link

@Gelob Gelob commented Aug 23, 2017

I was trying to upload some files whose filenames had unicode characters but they were being denied. IA handled them fine once this change in the script was made. According to the perl documentation this shouldn't have any difference in how ASCII characters are handled

uri_escape( $string )
Use uri_escape_utf8() if you know you have such chars or/and want chars in the 128 .. 255 range treated as UTF-8.

uri_escape_utf8( $string )
Works like uri_escape(), but will encode chars as UTF-8 before escaping them. This makes this function able to deal with characters with code above 255 in $string. Note that chars in the 128 .. 255 range will be escaped differently by this function compared to what uri_escape() would. For chars in the 0 .. 127 range there is no difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant