TrimResolver doesn't respect UTF-8
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
Research direction
Start at the TrimResolver entry point and inspect how its trim operation handles UTF-8 whitespace and custom characters. Verify the behavior with the listed no-break and em-space examples, along with ASCII trimming, and consider the issue resolved when UTF-8 spaces are removed without breaking multibyte characters.
Written by the indexing model from the issue text.
Description
Description
#[Trim] / TrimResolver does not trim UTF-8 specific spaces,
like "\u00A0" NO-BREAK SPACE, "\u2002" EN SPACE, "\u2003" EM SPACE, etc.
And such spaces can't be removed using custom chars for trim() as it will break some UTF-8 characters, instead mb_trim() should be used, it will handle UTF-8 and ASCII as well.
Package version
No response
PHP version
No response
- Dominant language
- PHP
- Stars
- 34
- Forks
- 6
- Avg merge
- 17m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from yiisoft/hydrator
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
status:ready for adoption type:feature
-
type:test
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
status:under discussion type:task
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
status:under discussion
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in yiisoft/hydrator
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·