zendframework / zend-mail

Mail component from Zend Framework
BSD 3-Clause "New" or "Revised" License
96 stars 111 forks source link

ListParse not work with cyrillic #243

Open dimaxz opened 5 years ago

dimaxz commented 5 years ago
dump(
    ListParser::parse(' value="price 1.xlsx"; attribute=""', [';', '=']),
    ListParser::parse(' value="Прайс 2.xlsx"; attribute=""', [';', '='])
);

array:4 [
  0 => " value"
  1 => ""price 1.xlsx""
  2 => " attribute"
  3 => """"
]
array:3 [
  0 => " value"
  1 => ""Прайс 2.xlsx""
  2 => " attribu"
]
dimaxz commented 5 years ago

may be

        for ($i = 0; $i < $length; $i += 1) {
            //$char = $value[$i];
            $char = substr($value,$i,1);
michalbundyra commented 5 years ago

@dimaxz I've tested it on mine and also some server and it works fine in both cases. Looks like it is system dependant issue.

dimaxz commented 5 years ago

Can I send you an email with an attachment so you can read it?

michalbundyra commented 5 years ago

@dimaxz ping me on zf slack, please

dimaxz commented 5 years ago

Failed! invite_limit_reached

weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-mail; a new issue has been opened at https://github.com/laminas/laminas-mail/issues/8.