mb_convert_encoding(): Illegal character encoding specified
shanezhiu opened this issue · 1 comments
shanezhiu commented
ENV
- os: Debian Buster
- library version:4.0
code snippet
$salt = random_bytes(mt_rand(6, 11));
$inneralCoding = \mb_detect_encoding($salt);
$hashIds = new Hashids($salt);
question
When$inneralCoding
is false
, a new instance Hashids
will be failed.
is there neccessary to ensure the salt is UTF-8 encoding?
vinkla commented
Thanks for your suggestion @shanezhiu but we currently don't have any plans to not ensure UTF-8 encoding.