Subject: | encodeURIComponent can't encode integer values |
Hello, Dan!
I found unexpected behavior of method encodeURIComponent. Then you try to encode integer value by this method, it returns empty string.
Test case:
perl -MURI::Escape::XS -e 'my $res = URI::Escape::XS::encodeURIComponent(1); print qq($res\n);'
Current result: empty sting
Expected result: 1